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

List:       koffice
Subject:    kword tabs
From:       Thomas <zander () xs4all ! nl>
Date:       2000-08-23 19:33:31
[Download RAW message or body]

When zooming is set to other than 100 the tabs in the content area are still
drawn at 100% zooming, creating to short spaces when zooming is higher than
100%.

Here is the patch:

zander@namlook:~/sources/kde/koffice/kword > cvs diff paraglayout.cc
Index: paraglayout.cc
===================================================================
RCS file: /home/kde/koffice/kword/paraglayout.cc,v
retrieving revision 1.61
diff -u -3 -p -r1.61 paraglayout.cc
--- paraglayout.cc      2000/08/21 14:10:33     1.61
+++ paraglayout.cc      2000/08/23 19:31:05
@@ -480,12 +480,14 @@ bool KWParagLayout::getNextTab( unsigned
 
     if ( _best != -1 ) {
         _tabPos = static_cast<int>(tabList.at( _best )->ptPos) + _lBorder;
+        _tabPos = _tabPos * document->getZoom() / 100;
         _tabType = tabList.at( _best )->type;
         return true;
     }
 
     if ( _mostLeft != -1 ) {
         _tabPos = static_cast<int>(tabList.at( _mostLeft )->ptPos) + _lBorder;
+        _tabPos = _tabPos * document->getZoom() / 100;
         _tabType = tabList.at( _mostLeft )->type;
         return true;
     } 

-- 
Thomas Zander                                            zander@earthling.net
The only thing worse than failure is the fear of trying something new

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

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