Bug 348976

Summary: Central alignment for a textbox craches kexi
Product: [Applications] KEXI Reporter: Albrecht Will <albrecht.will>
Component: FormsAssignee: Kexi Bugs <kexi-bugs>
Status: CLOSED FIXED    
Severity: normal CC: adam, albrecht.will, inksi, staniek
Priority: NOR    
Version: 2.9 beta3   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In: 3.0.2
Sentry Crash Report:
Attachments: screenshot

Description Albrecht Will 2015-06-10 13:46:12 UTC
a textbox on a groupbox shall be changed to word-wrap=yes. After increasing the heigth, the horizontal alignment shall changed to center. Then kexi crashes.
.


Reproducible: Always

Steps to Reproduce:
1. change in the properties word wrap to yes
2. increase the heigth of teh box
3. change in the properties the horizontal alignment to center 
4. crash

Actual Results:  
every time crashes

Expected Results:  
The text shoud be centered

Manjaro 0.8.12, Kexi 2.9.4
Comment 1 Albrecht Will 2015-06-10 13:51:15 UTC
Created attachment 93108 [details]
screenshot

I worked with the 2 red marked boxes
Comment 2 Jarosław Staniek 2015-06-10 14:23:02 UTC
Thanks Albrecht!
Setting as possible duplicate of another report.

*** This bug has been marked as a duplicate of bug 342371 ***
Comment 3 Jarosław Staniek 2017-06-01 20:35:48 UTC
Git commit e0bf198257421eef3a8e615f89219d17ee0a642c by Jaroslaw Staniek.
Committed on 01/06/2017 at 20:35.
Pushed by staniek into branch '3.0'.

Fix possible crashes in form undo/redo, make it properly work with alignment properties of widgets

Summary:
Undo/redo alignment fixes
+ limit image set of available alignments in widgets depending on widget class (image box is special)
Related: bug 380175, bug 342371
FIXED-IN:3.0.2

Test Plan: See https://bugs.kde.org/show_bug.cgi?id=380175#c0

Reviewers: piggz

Reviewed By: piggz

Tags: #kexi

Differential Revision: https://phabricator.kde.org/D5969

M  +12   -2    src/formeditor/WidgetInfo.cpp
M  +18   -1    src/formeditor/WidgetInfo.h
M  +54   -49   src/formeditor/form.cpp
M  +1    -1    src/formeditor/form.h
M  +3    -0    src/formeditor/form_p.cpp
M  +14   -4    src/kexiutils/utils.cpp
M  +4    -1    src/kexiutils/utils.h
M  +2    -0    src/plugins/forms/kexidbfactory.cpp

https://commits.kde.org/kexi/e0bf198257421eef3a8e615f89219d17ee0a642c