diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2014-11-25 23:02:48 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2014-11-25 23:02:48 +0100 |
commit | f46a5d6dfddf86be0d77e00cf44f26af54a97c75 (patch) | |
tree | c3ccbfa16fb2cbab48445b2c943ceb59936dbcf1 | |
parent | 6b219f012edbe069c461f4e0746898e33fa1dd49 (diff) |
Resolves fdo#86689: Strikethrough: "With /" and "With X"
"static" keyword explains why first time the option is well taken into account and not the other times.
So let's remove this and the option will be taken into account all the times.
Change-Id: I9db84373e425dfe21c307b965b1796c781cd7863
-rw-r--r-- | vcl/source/outdev/textline.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/outdev/textline.cxx b/vcl/source/outdev/textline.cxx index a5887c803809..da1d15585d94 100644 --- a/vcl/source/outdev/textline.cxx +++ b/vcl/source/outdev/textline.cxx @@ -591,7 +591,7 @@ void OutputDevice::ImplDrawStrikeoutChar( long nBaseX, long nBaseY, return; // prepare string for strikeout measurement - static char cStrikeoutChar = eStrikeout == STRIKEOUT_SLASH ? '/' : 'X'; + char cStrikeoutChar = eStrikeout == STRIKEOUT_SLASH ? '/' : 'X'; static const int nTestStrLen = 4; static const int nMaxStrikeStrLen = 2048; sal_Unicode aChars[nMaxStrikeStrLen+1]; // +1 for valgrind... |