e93c9eb034a1b744ef1a16889e588965057f13a1 to cc89121ffe961f34351888f9dcaacd8b68fc2f1f · Martin Owens / inkscape · GitLab
Martin Owens
·
2026-04-22
·
via Martin Owens activity
-
Fix crash while using maximum scans in trace dialog
·
a52cf8ae
* In the multi-color autotrace mode, max scans is used to set the
`color_count` value. It determines the number of colors a color bitmap
is reduced to. The allowed values are 1 to 256.
* The crash occurred because of incrementing scans value by 1 in
multi-color autotrace mode while invoking setColorCount. Since, the
maximum value allowed for the scan adjustment is 256, this'd result in
color count being set to 257. Hence, resulting in a crash because of
out of range value.
Fixes: #5475
-
-
-
Speed up drawing cache insert
·
bfec9d1a
Use boost intrusive multiset instead of std::list, now insert takes O(log n)
instead of O(n) with n number of items on canvas. Erase remains O(1).
No more memory allocation or failure paths on cache insertion
at the expense of slightly larger DrawingItem struct.
-
Fix Rotation and Undo History when rotated
·
7c47c2c0
In 'transform_rotate', 'transform_rotate_step', and 'transform_rotate_screen' multiply the rotation angle by 'yaxisdir()' to ensures the visual rotation the action (CW vs CCW).
calculate the visual angle' relative to 'yaxisdir()' for generating the Undo History message.
Fixes: #5992
-
New UX for text in shape and text in path
·
cc89121f
Provide the ability for users to click on shapes and lines with
the text tool and place text directly inside and on lines without
needing to use the text menu functions.
* New cursor icons inspired by the designs in Krita 6.0
* New pathways in text-tool decide if text should be added to curves or shapes
* Distil `create_text_in_shape` out of `create_text_with_rectangle`
* Add `create_text_at_position` into sp-text moved from text-tool.cpp
* Add `create_text_on_curve` in sp-tspan to manage creation of path text
Refactoring:
* Remove unused `create_text_with_inline_size` and fold into new function
* Remove unused variables in text-tool
* Removed include "desktop.h" in "sp-text.h" and fixed bad deps in ui
* Moved desktop/h include in tools to `tool-base.h` since every tool uses it
* Change creation methods to always use document units and not pass SPDesktop
* Remove `cursortolerance` pref dance in getItemsNearPoints
* Split SPText inclusion shape building and add get first line position
* Fix snap issues and add snapping to point outside of snappers
Other fixes:
* Fix scaling issues with font-size and making new text objects
* Fix scaling issue in knot handler for TextPath font-size
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。