diff options
| author | Fabien Costantini <fabien@onepost.net> | 2010-03-21 22:55:18 +0000 |
|---|---|---|
| committer | Fabien Costantini <fabien@onepost.net> | 2010-03-21 22:55:18 +0000 |
| commit | 31a54bcf1bf073e35d192f49320774ac485d843c (patch) | |
| tree | 67d881301909804bc68b93e636ca36b314ae1ea6 /src/Fl_Tree_Item.cxx | |
| parent | b087f8b648a6cab810236df0f0d37ff4e41fbed7 (diff) | |
Fixed msvc6 compilation was broken. What is the use of visualc now? seems we should remove that one ...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7312 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Tree_Item.cxx')
| -rw-r--r-- | src/Fl_Tree_Item.cxx | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/src/Fl_Tree_Item.cxx b/src/Fl_Tree_Item.cxx index 66950ed4f..703bfb2fd 100644 --- a/src/Fl_Tree_Item.cxx +++ b/src/Fl_Tree_Item.cxx @@ -373,11 +373,13 @@ void Fl_Tree_Item::draw_horizontal_connector(int x1, int x2, int y, const Fl_Tre y |= 1; // force alignment w/dot pattern fl_line(x1,y,x2,y); return; - case FL_TREE_CONNECTOR_DOTTED: - y |= 1; // force alignment w/dot pattern - for ( int xx=x1; xx<=x2; xx++ ) { - if ( !(xx & 1) ) fl_point(xx, y); - } + case FL_TREE_CONNECTOR_DOTTED: + { + y |= 1; // force alignment w/dot pattern + for ( int xx=x1; xx<=x2; xx++ ) { + if ( !(xx & 1) ) fl_point(xx, y); + } + } return; case FL_TREE_CONNECTOR_NONE: return; @@ -394,12 +396,14 @@ void Fl_Tree_Item::draw_vertical_connector(int x, int y1, int y2, const Fl_Tree_ fl_line(x,y1,x,y2); return; case FL_TREE_CONNECTOR_DOTTED: - y1 |= 1; // force alignment w/dot pattern - y2 |= 1; // force alignment w/dot pattern - for ( int yy=y1; yy<=y2; yy++ ) { - if ( yy & 1 ) fl_point(x, yy); - } - return; + { + y1 |= 1; // force alignment w/dot pattern + y2 |= 1; // force alignment w/dot pattern + for ( int yy=y1; yy<=y2; yy++ ) { + if ( yy & 1 ) fl_point(x, yy); + } + } + return; case FL_TREE_CONNECTOR_NONE: return; } |
