Kaydet (Commit) ca36f09c authored tarafından Caolán McNamara's avatar Caolán McNamara

textranges are always in pairs

Change-Id: I3d98c26c7902bc89ab6701dd02e266fd466c6907
üst 104a1e64
...@@ -841,7 +841,8 @@ bool ImpEditEngine::CreateLines( sal_Int32 nPara, sal_uInt32 nStartPosY ) ...@@ -841,7 +841,8 @@ bool ImpEditEngine::CreateLines( sal_Int32 nPara, sal_uInt32 nStartPosY )
// Use the widest range ... // Use the widest range ...
// The widest range could be a bit confusing, so normally it // The widest range could be a bit confusing, so normally it
// is the first one. Best with gaps. // is the first one. Best with gaps.
if ( pTextRanges->size() ) assert(pTextRanges->size() % 2 == 0 && "textranges are always in pairs");
if (!pTextRanges->empty())
{ {
long nA = pTextRanges->at(0); long nA = pTextRanges->at(0);
long nB = pTextRanges->at(1); long nB = pTextRanges->at(1);
......
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