Revert accidentally committed part of r12511 (STR #2788).

r12511: "Addresses STR #2788 for cursor positioning with mouse-click ..."

The here reverted part was the proposed patch of STR #3412:
"Fl_Text_Display scroll bug (style table with font != textsize() + wrap)".

See patch file: http://www.fltk.org/strfiles/3412/quickfix.patch


git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12518 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Albrecht Schlosser 2017-10-21 10:31:47 +00:00
parent 4593081b69
commit 071f4912a7

View File

@ -516,8 +516,7 @@ void Fl_Text_Display::resize(int X, int Y, int W, int H) {
text_area.w, oldTAWidth, text_area.w - oldTAWidth); text_area.w, oldTAWidth, text_area.w - oldTAWidth);
#endif // DEBUG2 #endif // DEBUG2
if (mContinuousWrap && !mWrapMarginPix ) { if (mContinuousWrap && !mWrapMarginPix && text_area.w != oldTAWidth) {
//if (mContinuousWrap && !mWrapMarginPix && text_area.w != oldTAWidth) {
int oldFirstChar = mFirstChar; int oldFirstChar = mFirstChar;
mNBufferLines = count_lines(0, buffer()->length(), true); mNBufferLines = count_lines(0, buffer()->length(), true);