summaryrefslogtreecommitdiff
path: root/svx/workben/edittest.cxx
diff options
context:
space:
mode:
authorMalte Timmermann <mt@openoffice.org>2000-11-20 11:42:26 +0000
committerMalte Timmermann <mt@openoffice.org>2000-11-20 11:42:26 +0000
commit255f0c7af0d78b245cb20c062392edd567095124 (patch)
tree1cbcacef0175c3f22c1d7e96a8b16a21c471a78b /svx/workben/edittest.cxx
parentf5465ef913989093b8c82d65196b09c53e63bc40 (diff)
Start vertical writing
Diffstat (limited to 'svx/workben/edittest.cxx')
-rw-r--r--svx/workben/edittest.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/svx/workben/edittest.cxx b/svx/workben/edittest.cxx
index 16e026dd6f..979a0d57e3 100644
--- a/svx/workben/edittest.cxx
+++ b/svx/workben/edittest.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: edittest.cxx,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: mt $ $Date: 2000-11-14 06:26:34 $
+ * last change: $Author: mt $ $Date: 2000-11-20 12:42:26 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -1483,7 +1483,7 @@ IMPL_LINK( EditMainWindow, ShowStatus, EditStatus *, pStat )
{
// Wird durch RGCHK_PAPERSZ1 'geklippt'
if ( !( pEditEngine->GetControlWord() & EE_CNTRL_AUTOPAGESIZE) )
- pEditView->Scroll( 0, -(long)pEditEngine->GetTextHeight(), RGCHK_PAPERSZ1 );
+ pEditView->Scroll( -(long)pEditEngine->CalcTextWidth(), -(long)pEditEngine->GetTextHeight(), RGCHK_PAPERSZ1 );
}
SetScrollBarRanges();
}
@@ -1628,7 +1628,7 @@ void __EXPORT EditViewWindow::Resize()
{
Size aPaperSz( GetOutputSize() );
pEditView->SetOutputArea( Rectangle( Point(0,0), aPaperSz ) );
- pEditEngine->SetPaperSize( aPaperSz );
+ pEditEngine->SetPaperSize( Size( aPaperSz.Width()*1, aPaperSz.Height()*1 ) );
pEditView->ShowCursor();
Invalidate();
}