diff options
author | Ricardo Montania <ricardo@linuxafundo.com.br> | 2013-07-16 07:47:27 -0300 |
---|---|---|
committer | Andras Timar <atimar@suse.com> | 2013-07-16 12:21:00 +0000 |
commit | 150c9f8bbcffacc687a5603e2a589d2a3816dccb (patch) | |
tree | 3ac2128e53eba42642d4b89c9c02390296b413cf /starmath/source/document.cxx | |
parent | 32527be0677a8fa971ebbf39ca9cab9c5a3687fb (diff) |
String.AppendAscii() cleanup in math
Change-Id: I567e1a80ab75d6ebdaba52cb9afd47dbd52f39ce
Reviewed-on: https://gerrit.libreoffice.org/4933
Reviewed-by: Andras Timar <atimar@suse.com>
Tested-by: Andras Timar <atimar@suse.com>
Diffstat (limited to 'starmath/source/document.cxx')
-rw-r--r-- | starmath/source/document.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/starmath/source/document.cxx b/starmath/source/document.cxx index 8a8c9c640c55..e49faecbc852 100644 --- a/starmath/source/document.cxx +++ b/starmath/source/document.cxx @@ -154,7 +154,7 @@ void SmDocShell::SetText(const OUString& rBuffer) { SAL_INFO( "starmath", "starmath: SmDocShell::SetText" ); - if (rBuffer != OUString(aText)) + if (rBuffer != aText) { bool bIsEnabled = IsEnableSetModified(); if( bIsEnabled ) @@ -656,7 +656,7 @@ void SmDocShell::OnDocumentPrinterChanged( Printer *pPrt ) SetFormulaArranged(false); Size aOldSize = GetVisArea().GetSize(); Repaint(); - if( aOldSize != GetVisArea().GetSize() && aText.Len() ) + if( aOldSize != GetVisArea().GetSize() && !aText.isEmpty() ) SetModified( true ); pTmpPrinter = 0; } |