diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-09-09 18:31:57 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-09-09 18:34:13 +0200 |
commit | 8bed4206e1b5548e3525021d6d13025a6eb01081 (patch) | |
tree | 26b0e4bd604768e71d9475983b695f3ef565e290 /sc/source/filter/rtf | |
parent | 2ac26e6b5248f2f3fde8dc4341b01ef15b6c3a29 (diff) |
fix crash introduced by stl conversion, fdo#54299
Change-Id: Ieb39563b1d26c3037d4200f9ec68f4ce2b2c7b42
Diffstat (limited to 'sc/source/filter/rtf')
-rw-r--r-- | sc/source/filter/rtf/rtfparse.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/filter/rtf/rtfparse.cxx b/sc/source/filter/rtf/rtfparse.cxx index 511d905ca784..56c2f7cd23d3 100644 --- a/sc/source/filter/rtf/rtfparse.cxx +++ b/sc/source/filter/rtf/rtfparse.cxx @@ -125,7 +125,7 @@ sal_Bool ScRTFParser::SeekTwips( sal_uInt16 nTwips, SCCOL* pCol ) { ScRTFColTwips::const_iterator it = pColTwips->find( nTwips ); sal_Bool bFound = it != pColTwips->end(); - sal_uInt16 nPos = it - pColTwips->end(); + sal_uInt16 nPos = it - pColTwips->begin(); *pCol = static_cast<SCCOL>(nPos); if ( bFound ) return sal_True; |