diff options
author | Khaled Hosny <khaledhosny@eglug.org> | 2013-05-25 14:33:46 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2013-05-27 07:43:15 +0000 |
commit | 6e6b028164176e39219dccbe1b84380b10b6e64f (patch) | |
tree | 06aa298bb35d1b311b0e7b436e140a3faf702df0 | |
parent | e978e839501eb3f69173d13537b7b2e67b72af6d (diff) |
Fix fdo#64685 - Superscript broken in master
After f22006dc6ac34a35a060e15466cf6b2d2058617d the position member of
SwDrawTextInfo is no longer a pointer, so changing the passed Point
after calling SetPos() has no effect, but some code seems to be relying
on it being pointer. Moving SetPos() to after changing the point seems
to do the trick, but there may be other similarly broken code like
SwSubFont::_DrawStretchText() below.
Change-Id: I2f563c1543ff7bff68e573f69fce39694181b370
Reviewed-on: https://gerrit.libreoffice.org/4032
Reviewed-by: David Tardon <dtardon@redhat.com>
Tested-by: David Tardon <dtardon@redhat.com>
-rw-r--r-- | sw/source/core/txtnode/swfont.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/core/txtnode/swfont.cxx b/sw/source/core/txtnode/swfont.cxx index 02b5addfe2b5..068fd7103433 100644 --- a/sw/source/core/txtnode/swfont.cxx +++ b/sw/source/core/txtnode/swfont.cxx @@ -850,12 +850,12 @@ void SwSubFont::_DrawText( SwDrawTextInfo &rInf, const sal_Bool bGrey ) SwDigitModeModifier aDigitModeModifier( rInf.GetOut(), rInf.GetFont()->GetLanguage() ); Point aPos( rInf.GetPos() ); - const Point &rOld = rInf.GetPos(); - rInf.SetPos( aPos ); if( GetEscapement() ) CalcEsc( rInf, aPos ); + const Point &rOld = rInf.GetPos(); + rInf.SetPos( aPos ); rInf.SetKern( CheckKerning() + rInf.GetSperren() / SPACING_PRECISION_FACTOR ); if( IsCapital() ) |