The SizeTAttribute.h file, used a write function especially for size_t.
But the base type actually was an integer.
The class itself only accepted size_t, resulting in a casting chain from size_t -> int -> size_t
- Implement ColorPalette parsing
- Implement NamedColor class to handle colors easier
- Implement default color palette creation (in case no `palette.gpl`
found)
- Implement basic parsing error messages to facilitate debugging of
`palette.gpl`
- Implement Parsing of new toolbar.ini format and add automatic migration
- COLOR(xa0b2d3) -> COLOR(1) depending on the color palette
- the migration simply increments the Color Palette index for every
color as there is no obvious mapping
- Implement test suite for ColorPalette parsing
- Remove any mentions of hex colors
- Remove unused DEV_METADATA_MAX_ITEMS from cmake
- Change drag drop implementation for ColorToolItems
- Improve design of seperator "icon" (in customization window only)
* Set classic locale for PDF export link attributes
* Add success test for cairo surface setup in XojCairoPdfExport
* Display error message when pdf export fails
* Force C locale LC_NUMERIC to "C"
When opening Xournal++ after an update changing where the configuration files are located, users are greeted with a message that contains an error.
This commit fixes it.
* Migrate from CppUnit to gtest
- include GoogleTest to cmake files and remove CppUnit
- include GoogleTest in azure-pipelines and remove CppUnit
- move tests from test/ to test/unit_tests/ and adapt to GoogleTest
- add two testcases from XojPreviewExtractorTest that were previously
skipped and fix them
- pin GoogleTest version to git tag "release-1.11.0`
- bump required CMake version to 3.14 to allow for `FetchContent_MakeAvailable`
- set `test-units` target to `EXCLUDE_FROM_ALL`
- fix coverage not properly working because of missing link options
- Improve `rpath` configuration in `test/CMakeLists.txt` to no longer require changing the `rpath` after build
* Add extensive documentation under `test/README.md`
* Incorporate several Review Comments
And move code that handles tools that respond to click actions to XojPageView::onButtonClickEvent.
This might make it easier to add click actions in the future.