mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-23 18:32:55 +00:00
QSvgIOHandler::loadDevice() optimization
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
abe5340216
commit
b18325c826
2 changed files with 2 additions and 3 deletions
|
@ -152,7 +152,7 @@ bool QSvgIOHandler::loadDevice() const
|
|||
if (!loaded) {
|
||||
return false;
|
||||
}
|
||||
m_defaultSize = QSize(m_renderer.viewBox().width(), m_renderer.viewBox().height());
|
||||
m_defaultSize = m_renderer.viewBox().size();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
@ -22,8 +22,7 @@
|
|||
#ifndef QSVGIOHANDLER_H
|
||||
#define QSVGIOHANDLER_H
|
||||
|
||||
#include <QtGui/qimageiohandler.h>
|
||||
|
||||
#include <QImageIOHandler>
|
||||
#include <QImage>
|
||||
#include <QIODevice>
|
||||
#include <QVariant>
|
||||
|
|
Loading…
Add table
Reference in a new issue