summaryrefslogtreecommitdiff
path: root/vcl/source/edit
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@yahoo.com>2016-05-02 22:15:43 +0200
committerMatteo Casalin <matteo.casalin@yahoo.com>2016-05-10 21:38:39 +0200
commitec3f3cf11b9874b22f6cf71c66932844c5a6938e (patch)
tree90fb6c0bd050163b88cbaa735d2f6224a2e964cd /vcl/source/edit
parenta123e824d985750288567b18ec609546e1f09ebc (diff)
This temporary Size is not really needed
Change-Id: Ieb20b30bb017118acc6fcc00d175cab9b47732c2
Diffstat (limited to 'vcl/source/edit')
-rw-r--r--vcl/source/edit/texteng.cxx12
1 files changed, 4 insertions, 8 deletions
diff --git a/vcl/source/edit/texteng.cxx b/vcl/source/edit/texteng.cxx
index acb1cb8d43b9..4ccb2f0d8157 100644
--- a/vcl/source/edit/texteng.cxx
+++ b/vcl/source/edit/texteng.cxx
@@ -193,16 +193,12 @@ void TextEngine::SetFont( const vcl::Font& rFont )
maFont.SetAlignment( ALIGN_TOP );
mpRefDev->SetFont( maFont );
- Size aTextSize;
- aTextSize.Width() = mpRefDev->GetTextWidth(" ");
- aTextSize.Height() = mpRefDev->GetTextHeight();
- if ( !aTextSize.Width() )
- aTextSize.Width() = mpRefDev->GetTextWidth("XXXX");
-
- mnDefTab = aTextSize.Width();
+ mnDefTab = mpRefDev->GetTextWidth(" ");
+ if ( !mnDefTab )
+ mnDefTab = mpRefDev->GetTextWidth("XXXX");
if ( !mnDefTab )
mnDefTab = 1;
- mnCharHeight = aTextSize.Height();
+ mnCharHeight = mpRefDev->GetTextHeight();
mnFixCharWidth100 = 0;
FormatFullDoc();