[Kst] [Bug 123036] Legends do not show up when printing to ps file.

Andrew Walker arwalker at sumusltd.com
Tue Mar 7 00:52:38 CET 2006

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

------- Additional Comments From arwalker sumusltd com  2006-03-07 00:52 -------
The problem here is with the combination of child view objects of 2dplot being tied to the PlotRegion and the resolution enhancement used when printing. In particular the following code in Kst2DPlot::draw(KstPainter& p, double resolutionEnhancement)

  } else {
    const QRect a(PlotRegion), b(WinRegion), c(PlotAndAxisRegion);
    setPixRect(RelPlotRegion, RelWinRegion, RelPlotAndAxisRegion);
    recursively(&KstViewObject::updateFromAspect); // alignment may have changed
    setPixRect(a, b, c);

causes the child objects of Kst2DPlot to have their position set well outside of the plot, as the updateFromAspect(...) is called while the various 2dPlot regions are five times their real size, in order to achieve the resolution enhancement.

The solution would be to either get rid of the concept of resolution enhancement or call updateFromAspect(...) for all the children with the correct regions.

More information about the Kst mailing list