Opened 13 years ago

Last modified 20 months ago

#4837 new bug

limited stroke width

Reported by: Meanwhile Owned by: stippi
Priority: normal Milestone: R1.1
Component: Applications/Icon-O-Matic Version: R1/alpha1
Keywords: Cc:
Blocked By: Blocking:
Platform: All


Under properties, the width of a stroke can be set in more precise values than just round numbers.
When -for example- changing a shape's width from 1.00 to 1.50, the stroke's thickening is clearly visible in I-O-M's preview windows.
So, one would expect this new shape to be saved just like it appears there, but this is not the case. After saving, the new shape with a 1.50 wide stroke is identical to its original shape with a 1.00 wide stroke.
This happens with any value between round numbers; e.g. 1.95 looks just like 1.00 and 1.50 (after saving).

Change History (3)

comment:1 by stippi, 12 years ago

The bug is in src/apps/icon-o-matic/import_export/flat_icon/FlatIconExporter.cpp line 466 and src/libs/icon/flat_icon/FlatIconImporter.cpp line 491ff. It stores the width as uint8. It should scale the width (0-32 perhaps), so that at least some granularity between integer values could be offered. Changing this will break all existing icons, although file versioning could be introduced.

comment:2 by Meanwhile, 12 years ago

Hum..let's not break all existing icons :D I hereby retract my ticket...

comment:3 by pulkomandy, 20 months ago

Milestone: R1R1.1
Note: See TracTickets for help on using tickets.