summaryrefslogtreecommitdiffstats
path: root/src/document.cpp
diff options
context:
space:
mode:
authorPatrick Storz <eduard.braun2@gmx.de>2019-07-22 20:33:48 +0000
committerPatrick Storz <eduard.braun2@gmx.de>2019-07-22 23:15:57 +0000
commit624aeeae6ae43c2c298462cbd1108f2e5ad7fbef (patch)
treedd202b8cbd2088698ce8281d9d024d91643b5e42 /src/document.cpp
parentUpdate jhbuild (diff)
downloadinkscape-624aeeae6ae43c2c298462cbd1108f2e5ad7fbef.tar.gz
inkscape-624aeeae6ae43c2c298462cbd1108f2e5ad7fbef.zip
Preferences: add methods to set/get unsigned integers
Those should be used for RGBA color values, which would overflow the signed type otherwise. Replacement will be seamless and fully backwards-compatible, as we can read the overflowed (i.e. negative) signed integers we used to save and they will be properly unwrapped. Also reading the unsigned ints as signed ints in older versions of Inkscape will still work, as we always depended on the undefined behavior of atoi in case of out of range numbers (which luckily is means overflowing in gcc).
Diffstat (limited to 'src/document.cpp')
0 files changed, 0 insertions, 0 deletions