summaryrefslogtreecommitdiff
path: root/src/wx/timeline.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2018-07-02 22:55:29 +0100
committerCarl Hetherington <cth@carlh.net>2018-07-02 22:55:29 +0100
commitf9d707e3fa3927a555b7cfd99fa2b48d7cb3f45e (patch)
tree9b7c05c4242204f29ae4725287988fbaf2a9d90d /src/wx/timeline.cc
parent220518a7bf41bfd9e9da852b4d5ac1461fdd0e1a (diff)
Fix drawing.
Diffstat (limited to 'src/wx/timeline.cc')
-rw-r--r--src/wx/timeline.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/wx/timeline.cc b/src/wx/timeline.cc
index 2e4de2274..30a5ef172 100644
--- a/src/wx/timeline.cc
+++ b/src/wx/timeline.cc
@@ -79,6 +79,7 @@ Timeline::Timeline (wxWindow* parent, ContentPanel* cp, shared_ptr<Film> film)
wxSizer* sizer = new wxBoxSizer (wxHORIZONTAL);
sizer->Add (_labels_panel, 0, wxEXPAND);
+ _labels_panel->SetMinSize (wxSize (_labels_view->bbox().width, -1));
sizer->Add (_main_canvas, 1, wxEXPAND);
SetSizer (sizer);
@@ -106,7 +107,7 @@ Timeline::Timeline (wxWindow* parent, ContentPanel* cp, shared_ptr<Film> film)
void
Timeline::paint_labels ()
{
- wxPaintDC dc (this);
+ wxPaintDC dc (_labels_panel);
wxGraphicsContext* gc = wxGraphicsContext::Create (dc);
if (!gc) {
@@ -121,7 +122,7 @@ Timeline::paint_labels ()
void
Timeline::paint_main ()
{
- wxPaintDC dc (this);
+ wxPaintDC dc (_main_canvas);
_main_canvas->DoPrepareDC (dc);
wxGraphicsContext* gc = wxGraphicsContext::Create (dc);