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 | |
parent | 2ac26e6b5248f2f3fde8dc4341b01ef15b6c3a29 (diff) |
fix crash introduced by stl conversion, fdo#54299
Change-Id: Ieb39563b1d26c3037d4200f9ec68f4ce2b2c7b42
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/filter/html/htmlpars.cxx | 2 | ||||
-rw-r--r-- | sc/source/filter/rtf/rtfparse.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/filter/html/htmlpars.cxx b/sc/source/filter/html/htmlpars.cxx index 105ef7580cbd..4034d033c84a 100644 --- a/sc/source/filter/html/htmlpars.cxx +++ b/sc/source/filter/html/htmlpars.cxx @@ -391,7 +391,7 @@ bool ScHTMLLayoutParser::SeekOffset( ScHTMLColOffset* pOffset, sal_uInt16 nOffse OSL_ENSURE( pOffset, "ScHTMLLayoutParser::SeekOffset - illegal call" ); ScHTMLColOffset::const_iterator it = pOffset->find( nOffset ); bool bFound = it != pOffset->end(); - sal_uInt16 nPos = it - pOffset->end(); + sal_uInt16 nPos = it - pOffset->begin(); *pCol = static_cast<SCCOL>(nPos); if ( bFound ) return true; 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; |