[Kst] extragear/graphics/kst/kst
George Staikos
staikos at kde.org
Tue Oct 11 03:17:51 CEST 2005
SVN commit 469394 by staikos:
fix a couple of crashes triggered when loading Kst files from 1.1
M +14 -3 kstviewlabel.cpp
--- trunk/extragear/graphics/kst/kst/kstviewlabel.cpp #469393:469394
@@ -155,7 +155,12 @@
void KstViewLabel::resize(const QSize& size) {
KstBorderedViewObject::resize(size);
- drawToBuffer(_parsed);
+ if (!_parsed) {
+ reparse();
+ }
+ if (_parsed) {
+ drawToBuffer(_parsed);
+ }
}
@@ -411,9 +416,15 @@
_absFontSize = MIN_FONT_SIZE;
}
}
+
+ if (!_parsed) {
+ reparse();
+ }
+
+ if (_parsed) {
+ computeTextSize(_parsed);
+ }
- computeTextSize(_parsed);
-
if (_rotation != 0 && _rotation != 180) {
QPointArray pts(4);
pts[0] = QPoint(0, 0);
More information about the Kst
mailing list