Bug 295224

Summary: Some formatter styles don't show previews randomly
Product: [Applications] kdevelop Reporter: Alexander Shaduri <ashaduri>
Component: AstyleAssignee: kdevelop-bugs-null
Status: RESOLVED FIXED    
Severity: normal CC: aleixpol, anton, aspotashev, kfunk
Priority: NOR    
Version First Reported In: git master   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 5.0.1
Sentry Crash Report:

Description Alexander Shaduri 2012-03-02 16:55:39 UTC
Version:           git master (using KDE 4.7.2) 
OS:                Linux

I'm using KDevelop git master (2012-03-02).

In the Configure KDevelop dialog there is a "Source Formatter" section which shows a preview of selected formatter.
The thing is, the preview widget disappears randomly when selecting some formatters.

If the formatter is set to Custom Script Formatter, "Gnu Indent: GNU" and "Gnu Indent: Original Berkley" styles are shown without preview, but "Gnu Indent: Kernighan & Ritchie" is sometimes with preview, sometimes without.
For example, it may not show a preview but if I open the dialog the second time, it might.

Same goes for "Artistic Style" formatters - most of them usually have their previews, but sometimes they don't (e.g. "Stroustrup" seems to lose it most often).

Another annoying thing is that if the Preview is not shown, the whole block of controls jumps completely to the right.

Thanks

Reproducible: Sometimes

Steps to Reproduce:
Open the Configure KDevelop dialog, click Source Formatters, switch around the formatting styles.

Actual Results:  
Sometimes some styles don't have previews.

Expected Results:  
Every style should have a preview.

openSUSE 12.1, x86_64.
Comment 1 Anton Anikin 2016-09-13 11:49:44 UTC
"jumps" fixed