application crashes if subtitle.text of Captions is too long

Bug #1561814 reported by XiaoGuo, Liu
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-ui-toolkit (Ubuntu)
New
Undecided
Zsombor Egri

Bug Description

I copied the code snippet at https://developer.ubuntu.com/api/apps/qml/sdk-15.04.1/Ubuntu.Components.Captions/, and I made an example at https://github.com/liu-xiao-guo/captions

If the code is like:

                Captions {
                    title.text: "Caption1"
                    subtitle.text: "Subtitle text 1111111111111111111"
                    // attached properties of an Item type property
                    // can be changed only with assignment
                    Component.onCompleted: subtitle.Layout.alignment = Qt.AlignRight
                }

The app crashes, however, if I change the above code to:

                Captions {
                    title.text: "Caption1"
                    subtitle.text: "Subtitle text"
                    // attached properties of an Item type property
                    // can be changed only with assignment
                    Component.onCompleted: subtitle.Layout.alignment = Qt.AlignRight
                }

Then the app does not crash any more.

Best regards,
XiaoGuo

Andrea Bernabei (faenil)
Changed in ubuntu-ui-toolkit (Ubuntu):
assignee: nobody → Zsombor Egri (zsombi)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.