加载中
源代码提交 12
-
Cleanup SPIFloat and default values in styles · b233c4c0
Remove remaining uses of SCALE24_TO_FLOAT and FROM_FLOAT macros which were only used for SPIFloat and can easily be folded into the object itself. Harmonize the default data type use with SPIEnum, SPILength and SPIFontSize this allows the rendering engine nr-style.cpp to use the right rendering value which is always the computed value and not need to think about the internal implementation of the style variable between `value`, `computed` and will allow these variable to be made private in the future. Mikekov: Add `as_double` and `as_enum` getter functions for the new explicit interface.
-
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
-
Fix breakage with Ubuntu 26.04 CI · ca8baeeb
* Implement supersampling for CLI tests, allowing lower fuzz thresholds. * Merge l2compare.sh into check_output.sh to reduce duplication. * Always use L2 metric for fuzzy raster comparisons, not absolute error. * Fix 09-text-layout.svg to add 'arabic' css class to some text that was missing it, use 'Noto Sans Hebrew' for hebrew text, and re-show some cut-off text. Update bundled Noto Sans fonts that it depends on. * Fix test-store writing to source directory. * Update reference images and adjust fuzz. Only significant reference image change is the peppercarrot one, where some previously missing text ("日本語") actually appears now.






















