Bug 143523 - Plot font size request not always honoured
Summary: Plot font size request not always honoured
Status: RESOLVED FIXED
Alias: None
Product: kst
Classification: Applications
Component: general (show other bugs)
Version: 1.x
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: kst
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-27 22:25 UTC by Andrew Walker
Modified: 2007-03-31 00:39 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Walker 2007-03-27 22:25:04 UTC
Version:           HEAD (using KDE KDE 3.5.1)
Installed from:    Compiled From Sources
OS:                Linux

PROBLEM:

The font sizes requested for a plot's top label, x axis, y axis, and numbers are ignored if the plot is the child of another plot.

STEPS TO REPRODUCE:

Start Kst
Create two plots
In layout mode resize one plot such that it can be contained by the other
Drag the smaller plot into the larger (which automatically parents one to the other)
Right-click on the smaller plot and select Edit...
In the Edit Plot dialog select the Appearance tab
Change the font size associated with any or all of the top label, x axis, y axis, or numbers
Hit OK

RESULTS:

The font sizes do not change

EXPECTED RESULTS:

The font sizes change to reflect the modified settings
Comment 1 Netterfield 2007-03-31 00:39:21 UTC
SVN commit 648295 by netterfield:

BUG: 143523

Make sure to do internal alignment on child objects.

Reviewed by George.



 M  +2 -0      kst2dplot.cpp  


--- trunk/extragear/graphics/kst/src/libkstapp/kst2dplot.cpp #648294:648295
@@ -2011,6 +2011,8 @@
   double xtick_len_px, ytick_len_px;
   int x_px, y_px;
 
+  KstViewObject::internalAlignment(p, plotRegion);
+
   // resize labels based on window size.
   x_px = geometry().width();
   y_px = geometry().height();