diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-02-24 12:42:03 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-02-24 12:42:03 +0200 |
commit | b8b81eead1f3d072a09d124ebb608ea15da3f988 (patch) | |
tree | 102e33e4ae9cc49b99d8e5837a1f7ed2ee2bf7aa /src/ui/sidebarwidget.c | |
parent | 83e936f53d3129433edfdb229a2faf78e48687b1 (diff) |
SidebarWidget: Draw a border
Diffstat (limited to 'src/ui/sidebarwidget.c')
-rw-r--r-- | src/ui/sidebarwidget.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/ui/sidebarwidget.c b/src/ui/sidebarwidget.c index e7eb6bde..c9a17374 100644 --- a/src/ui/sidebarwidget.c +++ b/src/ui/sidebarwidget.c | |||
@@ -1229,10 +1229,8 @@ static void draw_SidebarWidget_(const iSidebarWidget *d) { | |||
1229 | iPaint p; | 1229 | iPaint p; |
1230 | init_Paint(&p); | 1230 | init_Paint(&p); |
1231 | draw_Widget(w); | 1231 | draw_Widget(w); |
1232 | if (d->mode == documentOutline_SidebarMode) { | 1232 | drawVLine_Paint( |
1233 | drawVLine_Paint( | 1233 | &p, addX_I2(topRight_Rect(bounds), -1), height_Rect(bounds), uiSeparator_ColorId); |
1234 | &p, addX_I2(topRight_Rect(bounds), -1), height_Rect(bounds), uiSeparator_ColorId); | ||
1235 | } | ||
1236 | } | 1234 | } |
1237 | 1235 | ||
1238 | static void draw_SidebarItem_(const iSidebarItem *d, iPaint *p, iRect itemRect, | 1236 | static void draw_SidebarItem_(const iSidebarItem *d, iPaint *p, iRect itemRect, |