mirror of
https://github.com/fltk/fltk.git
synced 2026-05-28 20:06:18 +08:00
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:
@@ -2949,11 +2949,11 @@ void Fl_Text_Display::draw_line_numbers(bool /*clearAll*/) {
|
|||||||
// Make sure we set the correct clipping range for line numbers.
|
// Make sure we set the correct clipping range for line numbers.
|
||||||
// Take scrollbars and positions into account.
|
// Take scrollbars and positions into account.
|
||||||
int hscroll_h = mHScrollBar->visible() ? mHScrollBar->h() : 0;
|
int hscroll_h = mHScrollBar->visible() ? mHScrollBar->h() : 0;
|
||||||
int vscroll_w = mVScrollBar->visible() ? mVScrollBar->w() : 0;
|
|
||||||
int xoff = Fl::box_dx(box());
|
int xoff = Fl::box_dx(box());
|
||||||
int yoff = Fl::box_dy(box()) + ((scrollbar_align()&FL_ALIGN_TOP)?hscroll_h:0);
|
int yoff = Fl::box_dy(box()) + ((scrollbar_align()&FL_ALIGN_TOP)?hscroll_h:0);
|
||||||
|
|
||||||
#ifndef LINENUM_LEFT_OF_VSCROLL
|
#ifndef LINENUM_LEFT_OF_VSCROLL
|
||||||
|
int vscroll_w = mVScrollBar->visible() ? mVScrollBar->w() : 0;
|
||||||
if (scrollbar_align()&FL_ALIGN_LEFT)
|
if (scrollbar_align()&FL_ALIGN_LEFT)
|
||||||
xoff += vscroll_w;
|
xoff += vscroll_w;
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user