diff options
author | nyamatongwe <unknown> | 2010-01-26 22:25:03 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2010-01-26 22:25:03 +0000 |
commit | e46f99242b8acd8fac354c51d37089c102bc7046 (patch) | |
tree | aac6422a5cbd96548adbff5d3d16b429838b76fd /src/PositionCache.cxx | |
parent | 2ab05c51c00392840ffd934a0fdf0cb14d9741a2 (diff) | |
download | scintilla-mirror-e46f99242b8acd8fac354c51d37089c102bc7046.tar.gz |
Fix to allow compiling on old version of GCC 3.3.3. Bug #2940511.
Diffstat (limited to 'src/PositionCache.cxx')
-rw-r--r-- | src/PositionCache.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/PositionCache.cxx b/src/PositionCache.cxx index fa2d581e1..7bb0106fa 100644 --- a/src/PositionCache.cxx +++ b/src/PositionCache.cxx @@ -413,7 +413,9 @@ BreakFinder::BreakFinder(LineLayout *ll_, int lineStart_, int lineEnd_, int posL } if (breakForSelection) { - SelectionSegment segmentLine(SelectionPosition(posLineStart), SelectionPosition(posLineStart + lineEnd)); + SelectionPosition posStart(posLineStart); + SelectionPosition posEnd(posLineStart + lineEnd); + SelectionSegment segmentLine(posStart, posEnd); for (size_t r=0; r<ll->psel->Count(); r++) { SelectionSegment portion = ll->psel->Range(r).Intersect(segmentLine); if (!(portion.start == portion.end)) { |