diff options
author | Ivan Timofeev <timofeev.i.s@gmail.com> | 2012-03-02 18:44:42 +0400 |
---|---|---|
committer | Ivan Timofeev <timofeev.i.s@gmail.com> | 2012-03-02 18:46:51 +0400 |
commit | c1cf8dac6d54f3d0876803ca9dffce23df7241da (patch) | |
tree | b8e62acdf4769622e98bede5ccd2d659c035d285 /editeng | |
parent | remove traces of SvxFontTable (diff) | |
download | core-c1cf8dac6d54f3d0876803ca9dffce23df7241da.tar.gz core-c1cf8dac6d54f3d0876803ca9dffce23df7241da.zip |
there was the object comparison, not the pointer comparison
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/editeng/impedit4.cxx | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/editeng/source/editeng/impedit4.cxx b/editeng/source/editeng/impedit4.cxx index d28d664edeed..fd4fa31d08dd 100644 --- a/editeng/source/editeng/impedit4.cxx +++ b/editeng/source/editeng/impedit4.cxx @@ -814,7 +814,16 @@ void ImpEditEngine::WriteItemAsRTF( const SfxPoolItem& rItem, SvStream& rOutput, case EE_CHAR_FONTINFO_CJK: case EE_CHAR_FONTINFO_CTL: { - sal_uInt32 n = std::find(rFontTable.begin(), rFontTable.end(), (SvxFontItem*)&rItem ) - rFontTable.begin(); + sal_uInt32 n = 0; + for (size_t i = 0; i < rFontTable.size(); ++i) + { + if (*rFontTable[i] == rItem) + { + n = i; + break; + } + } + rOutput << OOO_STRING_SVTOOLS_RTF_F; rOutput.WriteNumber( n ); } |