Kaydet (Commit) 6180d716 authored tarafından Miklos Vajna's avatar Miklos Vajna

RTFTokenizer::resolveParse: use SvStream::remainingSize()

Change-Id: Ia09c4cf67390e24573174ff701a72f7bac367599
üst 2cd35d3a
...@@ -76,9 +76,7 @@ int RTFTokenizer::resolveParse() ...@@ -76,9 +76,7 @@ int RTFTokenizer::resolveParse()
OUString sDocLoad(ResId(RID_SVXSTR_DOC_LOAD, *pResMgr).toString()); OUString sDocLoad(ResId(RID_SVXSTR_DOC_LOAD, *pResMgr).toString());
sal_Size nCurrentPos = Strm().Tell(); sal_Size nCurrentPos = Strm().Tell();
Strm().Seek(STREAM_SEEK_TO_END); sal_Size nEndPos = nCurrentPos + Strm().remainingSize();
sal_Size nEndPos = Strm().Tell();
Strm().Seek(nCurrentPos);
m_xStatusIndicator->start(sDocLoad, nEndPos); m_xStatusIndicator->start(sDocLoad, nEndPos);
nPercentSize = nEndPos / 100; nPercentSize = nEndPos / 100;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment