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

List:       kde-commits
Subject:    koffice/lib/kofficeui
From:       Thomas Zander <zander () kde ! org>
Date:       2005-12-10 13:02:56
Message-ID: 1134219776.643036.30404.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 487361 by zander:

Fix columns not being updated properly sometimes.
The var is only used in the preview; so lets not cache it
 so we can't corrupt it either.


 M  +1 -2      KoPageLayoutSize.cpp  
 M  +0 -1      KoPageLayoutSize.h  


--- trunk/koffice/lib/kofficeui/KoPageLayoutSize.cpp #487360:487361
@@ -35,7 +35,6 @@
 
 KoPageLayoutSize::KoPageLayoutSize(QWidget *parent, const KoPageLayout& \
layout, KoUnit::Unit unit,const KoColumns& columns,  bool unitChooser, bool \
enableBorders)  : QWidget(parent) {
-    m_columns = columns;
     m_layout = layout;
     m_unit = unit;
 
@@ -172,11 +171,11 @@
 
     setValues();
     updatePreview();
+    pgPreview->setPageColumns( columns );
 }
 
 void KoPageLayoutSize::updatePreview() {
     pgPreview->setPageLayout( m_layout );
-    pgPreview->setPageColumns( m_columns );
 }
 
 void KoPageLayoutSize::setValues() {
--- trunk/koffice/lib/kofficeui/KoPageLayoutSize.h #487360:487361
@@ -74,7 +74,6 @@
     void setValues();
 
     KoUnit::Unit m_unit;
-    KoColumns m_columns;
     KoPageLayout m_layout;
 };
 


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

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