Fix unused variable compiler warning.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@11210 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Albrecht Schlosser
2016-02-22 17:38:26 +00:00
parent 7d3eaf31c2
commit 78dad08926
+1 -1
View File
@@ -2949,11 +2949,11 @@ void Fl_Text_Display::draw_line_numbers(bool /*clearAll*/) {
// Make sure we set the correct clipping range for line numbers.
// Take scrollbars and positions into account.
int hscroll_h = mHScrollBar->visible() ? mHScrollBar->h() : 0;
int vscroll_w = mVScrollBar->visible() ? mVScrollBar->w() : 0;
int xoff = Fl::box_dx(box());
int yoff = Fl::box_dy(box()) + ((scrollbar_align()&FL_ALIGN_TOP)?hscroll_h:0);
#ifndef LINENUM_LEFT_OF_VSCROLL
int vscroll_w = mVScrollBar->visible() ? mVScrollBar->w() : 0;
if (scrollbar_align()&FL_ALIGN_LEFT)
xoff += vscroll_w;
#endif