OSDN Git Service
(root)
/
kde
/
Katie.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6769d04
)
save and restore the device position in QSvgIOHandler::option()
author
Ivailo Monev
<xakepa10@gmail.com>
Wed, 5 Jul 2023 00:31:52 +0000
(
03:31
+0300)
committer
Ivailo Monev
<xakepa10@gmail.com>
Wed, 5 Jul 2023 00:31:52 +0000
(
03:31
+0300)
that will shush gwenview
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
src/plugins/imageformats/svg/qsvgiohandler.cpp
patch
|
blob
|
history
diff --git
a/src/plugins/imageformats/svg/qsvgiohandler.cpp
b/src/plugins/imageformats/svg/qsvgiohandler.cpp
index
d576e54
..
b7cfd45
100644
(file)
--- a/
src/plugins/imageformats/svg/qsvgiohandler.cpp
+++ b/
src/plugins/imageformats/svg/qsvgiohandler.cpp
@@
-81,9
+81,12
@@
QVariant QSvgIOHandler::option(QImageIOHandler::ImageOption option) const
{
switch (option) {
case QImageIOHandler::Size: {
+ const qint64 devicepos = device()->pos();
if (!loadDevice()) {
+ device()->seek(devicepos);
return QVariant();
}
+ device()->seek(devicepos);
return m_defaultSize;
}
case QImageIOHandler::ScaledSize: {