diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_Text_Display.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/Fl_Text_Display.cxx b/src/Fl_Text_Display.cxx index c1ce82a05..2d060fa49 100644 --- a/src/Fl_Text_Display.cxx +++ b/src/Fl_Text_Display.cxx @@ -808,7 +808,7 @@ void Fl_Text_Display::overstrike(const char* text) { int Fl_Text_Display::position_to_xy( int pos, int* X, int* Y ) const { IS_UTF8_ALIGNED2(buffer(), pos) - int lineStartPos, fontHeight, lineLen; + int lineStartPos, fontHeight; int visLineNum; /* If position is not displayed, return false */ @@ -835,7 +835,6 @@ int Fl_Text_Display::position_to_xy( int pos, int* X, int* Y ) const { *X = text_area.x - mHorizOffset; return 1; } - lineLen = vline_length( visLineNum ); *X = text_area.x + handle_vline(GET_WIDTH, lineStartPos, pos-lineStartPos, 0, 0, 0, 0, 0, 0) - mHorizOffset; return 1; } @@ -2979,7 +2978,7 @@ void Fl_Text_Display::measure_deleted_lines(int pos, int nDeleted) { int nVisLines = mNVisibleLines; int *lineStarts = mLineStarts; int countFrom, lineStart; - int visLineNum = 0, nLines = 0, i; + int nLines = 0, i; /* ** Determine where to begin searching: either the previous newline, or ** if possible, limit to the start of the (original) previous displayed @@ -2991,7 +2990,6 @@ void Fl_Text_Display::measure_deleted_lines(int pos, int nDeleted) { break; if (i > 0) { countFrom = lineStarts[i-1]; - visLineNum = i-1; } else countFrom = buf->line_start(pos); } else |
