summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorMatteo Casalin <matteo.casalin@yahoo.com>2015-09-13 17:41:04 +0200
committerMatteo Casalin <matteo.casalin@yahoo.com>2015-09-14 22:40:33 +0200
commit584d55178d2e390e60355b18bbac4be16fe750dd (patch)
treefa85c9ffbe2a5c9f0df9f83627e410aca74caf1a /starmath
parent90059da96a91dd2271aeba4101cee8ce827e3c4e (diff)
String tokens do not include token separator
Change-Id: I03ab73e5f53b2068efc3c4cdaed15f2ec3854c76
Diffstat (limited to 'starmath')
-rw-r--r--starmath/source/view.cxx6
1 files changed, 0 insertions, 6 deletions
diff --git a/starmath/source/view.cxx b/starmath/source/view.cxx
index b10981b73870..8627f3767bbe 100644
--- a/starmath/source/view.cxx
+++ b/starmath/source/view.cxx
@@ -1006,8 +1006,6 @@ Size SmViewShell::GetTextSize(OutputDevice& rDevice, const OUString& rText, long
{
OUString aLine = rText.getToken(i, '\n');
aLine = comphelper::string::remove(aLine, '\r');
- aLine = comphelper::string::stripStart(aLine, '\n');
- aLine = comphelper::string::stripEnd(aLine, '\n');
aSize = GetTextLineSize(rDevice, aLine);
@@ -1071,8 +1069,6 @@ void SmViewShell::DrawTextLine(OutputDevice& rDevice, const Point& rPosition, co
aPoint.X() = ((aPoint.X() / nTabPos) + 1) * nTabPos;
OUString aText = rLine.getToken(i, '\t');
- aText = comphelper::string::stripStart(aText, '\t');
- aText = comphelper::string::stripEnd(aText, '\t');
rDevice.DrawText(aPoint, aText);
aPoint.X() += rDevice.GetTextWidth(aText);
}
@@ -1092,8 +1088,6 @@ void SmViewShell::DrawText(OutputDevice& rDevice, const Point& rPosition, const
{
OUString aLine = rText.getToken(i, '\n');
aLine = comphelper::string::remove(aLine, '\r');
- aLine = comphelper::string::stripEnd(aLine, '\n');
- aLine = comphelper::string::stripEnd(aLine, '\n');
aSize = GetTextLineSize(rDevice, aLine);
if (aSize.Width() > MaxWidth)
{