View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0000237 | QElectroTech | Element Editor | public | 2021-06-18 21:21 | 2026-09-25 11:47 |
| Reporter | markus71at | Assigned To | |||
| Priority | high | Severity | text | Reproducibility | always |
| Status | new | Resolution | open | ||
| Summary | 0000237: A "-" in label of user elements causes line feed | ||||
| Description | If you create a user element (or copy a default element and save as user element) "-" in label will cause a line feed. "-" in a label is essential as it is the default prefix. This must not cause a line feed. It should be like "=P+L-A" but it results in "=P+L- A" with line feed! | ||||
| Tags | No tags attached. | ||||
|
|
A label only wraps when its text field has a fixed width. The width is set per text field in the element editor, and new text fields take their default from Settings ("dynamic text width"). With no width set (-1, the default), "=P+L-A" stays on one line. With a width set, QElectroTech follows Qt's normal word wrap, which allows a line break after a hyphen, so a label wider than the field breaks after the "-". Could you check whether the label field in your element has a width set, and whether clearing it fixes it for you? Whether labels should ever wrap inside a fixed width is a question for the developers. |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2021-06-18 21:21 | markus71at | New Issue | |
| 2026-09-25 11:47 | ispyisail | Note Added: 0000908 |