[Kst] branches/work/kst/portto4/kst/src/libkstapp

Barth Netterfield netterfield at astro.utoronto.ca
Tue Jun 18 17:39:53 UTC 2013


SVN commit 1358011 by netterfield:

Typo broke viewitems in 2.0.7 (!!!).

This fixes the typo, and changes the intermediate variables to qreal for
consistency.


 M  +2 -2      viewitem.cpp  


--- branches/work/kst/portto4/kst/src/libkstapp/viewitem.cpp #1358010:1358011
@@ -1934,8 +1934,8 @@
 void ViewItem::updateRelativeSize(bool force_data) {
   if (parentViewItem()) {
     QPointF P;
-    int parentHeight = parentViewItem()->height() == 0 ? 1 : parentViewItem()->height();
-    int parentWidth  = parentViewItem()->width() == 0 ? 1 : parentViewItem()->height();
+    qreal parentHeight = parentViewItem()->height() == 0 ? 1 : parentViewItem()->height();
+    qreal parentWidth  = parentViewItem()->width() == 0 ? 1 : parentViewItem()->width();
     _parentRelativeHeight = (height() / parentHeight);
     _parentRelativeWidth = (width() / parentWidth);
 


More information about the Kst mailing list