Bug 143523

Summary: Plot font size request not always honoured
Product: [Applications] kst Reporter: Andrew Walker <arwalker>
Component: generalAssignee: kst
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 1.x   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

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();