Summary: | Mismatching resolution for vector layers | ||
---|---|---|---|
Product: | [Applications] krita | Reporter: | Ricardo Urbina <ricardo.urbina> |
Component: | Tools | Assignee: | Krita Bugs <krita-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | halla |
Priority: | NOR | ||
Version: | 2.8.5 | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | http://commits.kde.org/calligra/fddc5e9cc648c4d0eceb67b793faa3c0c14b8d62 | Version Fixed In: |
Description
Ricardo Urbina
2014-11-19 18:53:35 UTC
*** This bug has been marked as a duplicate of bug 313600 *** Git commit fddc5e9cc648c4d0eceb67b793faa3c0c14b8d62 by Dmitry Kazakov. Committed on 28/11/2014 at 11:14. Pushed by dkazakov into branch 'krita-chili-kazakov'. Fix Default tool widgets to show values in real pixels, not points Now the option widgets use correct KoUnit object to convert their options in correct user-visible pixels. Some note on the implementation: 1) Affects KoStrokeConfigWidget and DefaultToolWidget 2) The correct conversion value is stored in KoUnit, which is reported by KisCanvas2 and retransmitted by KisView2. 3) There is a hack in KoStrokeConfigWidget. KoShapeStroke knows nothing about the absoluteTransformation() of the shape, which doesn't stop the shape from doing the transformation of the outline (loaded into QPainter directly). So we take it into account manually, by adding a multiplier into KoUnit. Related: bug 313600 M +17 -1 krita/ui/canvas/kis_canvas2.cpp M +2 -0 krita/ui/flake/kis_shape_controller.cpp M +2 -1 krita/ui/flake/kis_shape_controller.h M +4 -0 krita/ui/kis_view2.cpp M +3 -1 libs/odf/KoUnit.h M +35 -2 libs/widgets/KoStrokeConfigWidget.cpp M +12 -1 libs/widgets/KoUnitDoubleSpinBox.cpp M +3 -0 plugins/defaultTools/defaulttool/DefaultToolWidget.cpp http://commits.kde.org/calligra/fddc5e9cc648c4d0eceb67b793faa3c0c14b8d62 |