summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoel Power <noel.power@novell.com>2012-04-18 18:36:25 +0100
committerNoel Power <noel.power@novell.com>2012-04-18 18:37:44 +0100
commit808dd658a265f565a638556322250a0957e8e535 (patch)
tree05c988a1926eb6383808f42abf95c37d9f929b6f
parent41c4585504f38a4b0eeb164f317ab71a7a742dd5 (diff)
make sure nPos is and nChar are reset for string without placeholder
-rw-r--r--sc/source/ui/view/output2.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/sc/source/ui/view/output2.cxx b/sc/source/ui/view/output2.cxx
index 6c616eb3a056..bca73f5ca7a4 100644
--- a/sc/source/ui/view/output2.cxx
+++ b/sc/source/ui/view/output2.cxx
@@ -520,6 +520,11 @@ sal_Bool ScDrawStringsVars::SetText( ScBaseCell* pCell )
aString.Erase( nPos, 2 );
}
}
+ else
+ {
+ nPos = STRING_NOTFOUND;
+ nChar = 0x0;
+ }
if (aString.Len() > DRAWTEXT_MAX)
aString.Erase(DRAWTEXT_MAX);