summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2016-02-22 17:33:02 +0000
committerAlbrecht Schlosser <albrechts.fltk@online.de>2016-02-22 17:33:02 +0000
commit0f7e3ac086c2fe5c6eda3466d108a930ea479074 (patch)
treef919f9ceeb82c6030be21b5deecf7dbeb7e5f25d /src
parent7e94d7650ba06878f51b1e6b493b91895d5a159e (diff)
Fix unused variable compiler warning.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11209 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
-rw-r--r--src/Fl_Text_Display.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Fl_Text_Display.cxx b/src/Fl_Text_Display.cxx
index 78e34ce57..cfeb9d970 100644
--- a/src/Fl_Text_Display.cxx
+++ b/src/Fl_Text_Display.cxx
@@ -2955,11 +2955,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