Bug 153385

Summary: Z-mode + Clean-up layout causes improper redraw
Product: [Applications] kst Reporter: D. V. Wiebe <dvw>
Component: generalAssignee: kst
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 1.5.0   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description D. V. Wiebe 2007-12-03 22:52:00 UTC
Version:           1.5.0 (using KDE KDE 3.5.8)
Installed from:    Compiled From Sources
Compiler:          gcc (GCC) 4.1.2 
OS:                Linux

When looking at a plot in "Z-mode" (ie. the full-window mode you get when you key "Z" on a plot), the "Cleanup Layout" option available from the right-click menu causes an improper redraw of the kst window.

Steps to reproduce:

1. create some plots
2. maximise one plot to the whole window by keying "Z"
3. Right click -> Cleanup Layout -> Default Tile

Result:

The previously maximised plot is drawn in the location it would have been placed, had clean-up layout been used without Z-mode active.  The remainder of the window is never repainted subsequently, until Z-mode is undone by hitting "Z" again.

Expected Results:

While in Z-mode, clean-up layout should either do nothing, re-arrange the windows "in the background" (ie. so that when the user leaves Z-mode, the plots will be in their cleaned-up orientation, but leaving the window otherwise unchanged in the interrim), or else force an exit from Z-mode before doing the clean-up.
Comment 1 Netterfield 2007-12-03 22:57:57 UTC
cleanup layout should just be disabled in ZMode.
Comment 2 Andrew Walker 2007-12-05 00:19:25 UTC
SVN commit 744957 by arwalker:

BUG:153385 Switch out of z-mode whemn user requests cleanup of layout. Fix other problems with z-mode: axis alignment and nested plots

 M  +15 -11    kst2dplot.cpp  
 M  +6 -1      kstviewobject.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=744957