Skip to content

Commit

Permalink
Revert accidentally committed part of r12511 (STR #2788).
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Albrecht Schlosser committed Oct 21, 2017
1 parent 4593081 commit 071f491
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Fl_Text_Display.cxx
Expand Up @@ -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);
#endif // DEBUG2

if (mContinuousWrap && !mWrapMarginPix ) {
//if (mContinuousWrap && !mWrapMarginPix && text_area.w != oldTAWidth) {
if (mContinuousWrap && !mWrapMarginPix && text_area.w != oldTAWidth) {

int oldFirstChar = mFirstChar;
mNBufferLines = count_lines(0, buffer()->length(), true);
Expand Down

0 comments on commit 071f491

Please sign in to comment.