summaryrefslogtreecommitdiff
path: root/src/ui
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-02-24 12:42:03 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-02-24 12:42:03 +0200
commitb8b81eead1f3d072a09d124ebb608ea15da3f988 (patch)
tree102e33e4ae9cc49b99d8e5837a1f7ed2ee2bf7aa /src/ui
parent83e936f53d3129433edfdb229a2faf78e48687b1 (diff)
SidebarWidget: Draw a border
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/sidebarwidget.c6
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
1238static void draw_SidebarItem_(const iSidebarItem *d, iPaint *p, iRect itemRect, 1236static void draw_SidebarItem_(const iSidebarItem *d, iPaint *p, iRect itemRect,