[Libreoffice-commits] .: sc/source
Noel Power
noelp at kemper.freedesktop.org
Wed Apr 18 10:38:03 PDT 2012
sc/source/ui/view/output2.cxx | 5 +++++
1 file changed, 5 insertions(+)
New commits:
commit 808dd658a265f565a638556322250a0957e8e535
Author: Noel Power <noel.power at novell.com>
Date: Wed Apr 18 18:36:25 2012 +0100
make sure nPos is and nChar are reset for string without placeholder
diff --git a/sc/source/ui/view/output2.cxx b/sc/source/ui/view/output2.cxx
index 6c616eb..bca73f5 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);
More information about the Libreoffice-commits
mailing list