diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/Editor.cxx | 3 | 
1 files changed, 3 insertions, 0 deletions
| diff --git a/src/Editor.cxx b/src/Editor.cxx index 8f023ee5f..9b98775c9 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -1247,6 +1247,9 @@ Editor::XYScrollPosition Editor::XYScrollToMakeVisible(const SelectionRange rang  	const Point ptBottomCaret(pt.x, pt.y + vs.lineHeight - 1);  	XYScrollPosition newXY(xOffset, topLine); +	if (rcClient.Empty()) { +		return newXY; +	}  	// Vertical positioning  	if ((options & xysVertical) && (pt.y < rcClient.top || ptBottomCaret.y >= rcClient.bottom || (caretYPolicy & CARET_STRICT) != 0)) { | 
