File tree Expand file tree Collapse file tree 2 files changed +7
-13
lines changed
Expand file tree Collapse file tree 2 files changed +7
-13
lines changed Original file line number Diff line number Diff line change @@ -40,10 +40,12 @@ Chart::Chart() :
4040void Chart::setBoundRect (const Geom::Rect &rect)
4141{
4242 if (actPlot) {
43- actPlot->getStyle ().setup ();
44- layout.setBoundary (rect,
45- actPlot->getStyle (),
46- actPlot->getOptions ());
43+ auto &style = actPlot->getStyle ();
44+ style.setup ();
45+ if (!actStyles.fontSize )
46+ computedStyles.fontSize = style.fontSize = Gfx::Length{
47+ Styles::Sheet::baseFontSize (rect.size , true )};
48+ layout.setBoundary (rect, style, actPlot->getOptions ());
4749 }
4850 else {
4951 layout.setBoundary (rect,
Original file line number Diff line number Diff line change @@ -96,12 +96,4 @@ bool Window::eventFilter(QObject *, QEvent *event)
9696 }
9797 return false ;
9898}
99- void Window::resizeEvent (QResizeEvent *)
100- {
101- try {
102- chart.getChart ().getChart ().setKeyframe ();
103- chart.getChart ().getChart ().animate ();
104- }
105- catch (...) {
106- }
107- }
99+ void Window::resizeEvent (QResizeEvent *) { update (); }
You can’t perform that action at this time.
0 commit comments