From 0d56c07a1d7426717cf8c243fd3002aacef1a9e7 Mon Sep 17 00:00:00 2001 From: Jonathan Moore Liles Date: Thu, 24 Apr 2008 21:50:21 -0500 Subject: [PATCH] Fix off-by-one in sequence drawing. --- Timeline/Control_Sequence.C | 2 +- Timeline/Sequence.C | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Timeline/Control_Sequence.C b/Timeline/Control_Sequence.C index 4ab3970..81cfd55 100644 --- a/Timeline/Control_Sequence.C +++ b/Timeline/Control_Sequence.C @@ -146,7 +146,7 @@ Control_Sequence::draw ( void ) fl_push_clip( x(), y(), w(), h() ); /* draw the box with the ends cut off. */ - draw_box( box(), x() - Fl::box_dx( box() ), y(), w() + Fl::box_dw( box() ), h(), color() ); + draw_box( box(), x() - Fl::box_dx( box() ), y(), w() + Fl::box_dw( box() ) + 1, h(), color() ); const int bx = x(); const int by = y() + Fl::box_dy( box() ); diff --git a/Timeline/Sequence.C b/Timeline/Sequence.C index aa237ed..9056b8d 100644 --- a/Timeline/Sequence.C +++ b/Timeline/Sequence.C @@ -84,7 +84,7 @@ Sequence::draw ( void ) fl_push_clip( x(), y(), w(), h() ); /* draw the box with the ends cut off. */ - draw_box( box(), x() - Fl::box_dx( box() ), y(), w() + Fl::box_dw( box() ), h(), color() ); + draw_box( box(), x() - Fl::box_dx( box() ), y(), w() + Fl::box_dw( box() ) + 1, h(), color() ); int X, Y, W, H;