[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: koffice/karbon/widgets
From: Rob Buis <rwlbuis () xs4all ! nl>
Date: 2003-04-18 8:36:29
[Download RAW message or body]
CVS commit by buis:
Fix for positioning of page and zooming.
M +2 -2 vcanvas.cc 1.12
--- koffice/karbon/widgets/vcanvas.cc #1.11:1.12
@@ -37,5 +37,5 @@ VCanvas::pageOffsetX() const
{
double zoomedWidth = m_part->document().width() * m_view->zoom();
- if( zoomedWidth < viewport()->width() )
+ if( contentsWidth() < viewport()->width() )
{
//kdDebug() << "offsetx : " << int( ( viewport()->width() - zoomedWidth ) / 2.0 ) << endl;
@@ -50,5 +50,5 @@ VCanvas::pageOffsetY() const
{
double zoomedHeight = m_part->document().height() * m_view->zoom();
- if( zoomedHeight < viewport()->height() )
+ if( contentsHeight() < viewport()->height() )
{
//kdDebug() << "offsetx : " << int( ( viewport()->height() - zoomedHeight ) / 2.0 ) << endl;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic