diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-07-09 15:06:20 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-07-09 15:13:41 +0100 |
commit | c62c3fd05b4d7721d65c2d1bd371e2f5153ff5d2 (patch) | |
tree | b429e0b1441d2b932968aaf190168fcc49e819ed /starmath | |
parent | 3d7ff1e907713d8ed53a1e193641a2f16de3c38b (diff) |
ditch last XubString in starmath
Change-Id: I5092bad1d56ecb302fff611546196a8ab439b52b
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/accessibility.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/starmath/source/accessibility.cxx b/starmath/source/accessibility.cxx index d5dc93efc9d6..6aa86f583383 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) |