[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    branches/work/kst/portto4/kst/src/libkstapp
From:       Barth Netterfield <netterfield () astro ! utoronto ! ca>
Date:       2013-06-18 17:39:53
Message-ID: 20130618173953.E03CFAC76B () svn ! kde ! org
[Download RAW message or body]

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);
 
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic