summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorAmelia Wang <amwang@novell.com>2010-09-13 14:45:00 +0200
committerC├ędric Bosdonnat <cedricbosdo@openoffice.org>2010-09-13 15:57:40 +0200
commit274928f4eb238c703217d473f36b43deb4260d61 (patch)
tree1cd7c76d82c2dfa4cd324e21ad99b2be1d48a4de /svtools
parent07a5627d92719740b5f16fdd8d53926acfffbde6 (diff)
cjk-character-units-fix-376788.diff: add a new character unit
i#376788
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/control/ruler.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/svtools/source/control/ruler.cxx b/svtools/source/control/ruler.cxx
index 92c33e988c84..65fd042e3dfe 100644
--- a/svtools/source/control/ruler.cxx
+++ b/svtools/source/control/ruler.cxx
@@ -268,6 +268,8 @@ void Ruler::ImplInit( WinBits nWinBits )
mnExtraStyle = 0; // Style des Extra-Feldes
mnExtraClicks = 0; // Click-Anzahl fuer Extra-Feld
mnExtraModifier = 0; // Modifier-Tasten beim Click im Extrafeld
+ mnCharWidth = 371;
+ mnLineHeight = 551;
mbCalc = TRUE; // Muessen Pagebreiten neu berechnet werden
mbFormat = TRUE; // Muss neu ausgegeben werden
mbDrag = FALSE; // Sind wir im Drag-Modus
@@ -476,6 +478,8 @@ void Ruler::ImplDrawTicks( long nMin, long nMax, long nStart, long nCenter )
long nTick2 ;
if ( mnUnitIndex == RULER_UNIT_CHAR )
{
+ if ( mnCharWidth == 0 )
+ mnCharWidth = 371;
nTick3 = mnCharWidth*2;
nTickCount = mnCharWidth;
nTickUnit = mnCharWidth;
@@ -483,6 +487,8 @@ void Ruler::ImplDrawTicks( long nMin, long nMax, long nStart, long nCenter )
}
else if ( mnUnitIndex == RULER_UNIT_LINE )
{
+ if ( mnLineHeight == 0 )
+ mnLineHeight = 551;
nTick3 = mnLineHeight*2;
nTickCount = mnLineHeight;
nTickUnit = mnLineHeight;