[Libreoffice-commits] core.git: starmath/source
Caolán McNamara
caolanm at redhat.com
Tue Jul 9 07:14:03 PDT 2013
starmath/source/accessibility.cxx | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
New commits:
commit c62c3fd05b4d7721d65c2d1bd371e2f5153ff5d2
Author: Caolán McNamara <caolanm at redhat.com>
Date: Tue Jul 9 15:06:20 2013 +0100
ditch last XubString in starmath
Change-Id: I5092bad1d56ecb302fff611546196a8ab439b52b
diff --git a/starmath/source/accessibility.cxx b/starmath/source/accessibility.cxx
index d5dc93e..6aa86f5 100644
--- a/starmath/source/accessibility.cxx
+++ b/starmath/source/accessibility.cxx
@@ -1113,11 +1113,8 @@ sal_Bool SmTextForwarder::IsValid() const
OUString SmTextForwarder::CalcFieldValue( const SvxFieldItem& rField, sal_Int32 nPara, sal_uInt16 nPos, Color*& rpTxtColor, Color*& rpFldColor )
{
- XubString aTxt;
EditEngine *pEditEngine = rEditAcc.GetEditEngine();
- if (pEditEngine)
- aTxt = pEditEngine->CalcFieldValue( rField, nPara, nPos, rpTxtColor, rpFldColor );
- return aTxt;
+ return pEditEngine ? pEditEngine->CalcFieldValue(rField, nPara, nPos, rpTxtColor, rpFldColor) : OUString();
}
void SmTextForwarder::FieldClicked(const SvxFieldItem&, sal_Int32, sal_uInt16)
More information about the Libreoffice-commits
mailing list