diff options
Diffstat (limited to 'kword/KWViewMode.cpp')
-rw-r--r-- | kword/KWViewMode.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/kword/KWViewMode.cpp b/kword/KWViewMode.cpp index 02130dc09..c1c6f16ee 100644 --- a/kword/KWViewMode.cpp +++ b/kword/KWViewMode.cpp @@ -508,10 +508,10 @@ TQSize KWViewModeText::contentsSize() // The width is the one from the text, so that the placement of tabs makes a bit of sense, etc. // The minimum height is the one of a normal page though. - int width = m_doc->tqlayoutUnitToPixelX( m_textFrameSet->textDocument()->width() ); + int width = m_doc->layoutUnitToPixelX( m_textFrameSet->textDocument()->width() ); int height = TQMAX((int)m_doc->paperHeight(m_doc->startPage()), - m_doc->tqlayoutUnitToPixelY( m_textFrameSet->textDocument()->height() ) ); + m_doc->layoutUnitToPixelY( m_textFrameSet->textDocument()->height() ) ); //kdDebug() << "KWViewModeText::contentsSize " << width << "x" << height << endl; return TQSize( width, height ); } @@ -526,10 +526,10 @@ bool KWViewModeText::isFrameSetVisible( const KWFrameSet *fs ) if(fs==NULL) return false; // assertion if(fs==textFrameSet()) return true; - const KWFrameSet* tqparentFrameset = fs->groupmanager() ? fs->groupmanager() : fs; - while ( tqparentFrameset->isFloating() ) { - tqparentFrameset = tqparentFrameset->anchorFrameset(); - if ( tqparentFrameset == m_textFrameSet ) + const KWFrameSet* parentFrameset = fs->groupmanager() ? fs->groupmanager() : fs; + while ( parentFrameset->isFloating() ) { + parentFrameset = parentFrameset->anchorFrameset(); + if ( parentFrameset == m_textFrameSet ) return true; } return false; |