[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: koffice/plugins/pictureshape
From: Miroslav Nohaj <miroslav.nohaj () ixonos ! com>
Date: 2010-07-08 8:57:14
Message-ID: 20100708085714.B8A96AC8A8 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1147443 by nohaj:
PictureShape:
Fixes the issue that if you do page zoom out in some documents, some pictures are not \
drawn and the KWord will hang in endless loop eating up all CPU time,
but this happens only if you zoom out to a level that you didn't use
before during this run of KWord with that document.
M +6 -1 PictureShape.cpp
M +1 -0 PictureShape.h
--- trunk/koffice/plugins/pictureshape/PictureShape.cpp #1147442:1147443
@@ -65,6 +65,11 @@
}
}
+void RenderQueue::updateShape()
+{
+ m_pictureShape->update();
+}
+
//////////////
PictureShape::PictureShape()
: KoFrameShape(KoXmlNS::draw, "image"),
@@ -142,7 +147,7 @@
QTimer::singleShot(0, m_renderQueue, SLOT(renderImage()));
if (!imageData->hasCachedPixmap()
|| imageData->pixmap().size().width() > pixmapSize.width()) { // don't \
scale down
- update(pixelsF); // schedule another update, by then the renderqueue \
might have rendered the pixmap + QTimer::singleShot(0, m_renderQueue, \
SLOT(updateShape())); return;
}
pixmap = imageData->pixmap();
--- trunk/koffice/plugins/pictureshape/PictureShape.h #1147442:1147443
@@ -85,6 +85,7 @@
public slots:
void renderImage();
+ void updateShape();
private:
KoShape *m_pictureShape;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic