[Bug 635026] Re: Okular Trim margins doesn't work if paper colour is changed
Lauri Lyly
lauri.lyly at aalto.fi
Sun Sep 9 15:17:51 UTC 2012
I confirmed this is the case, so ... there's this function "isWhite" in
utils.cpp which isn't used anywhere else than in
Utils::imageBoundingBox.
I modified it from
inline static bool isWhite( QRgb argb ) {
return ( argb & 0xFFFFFF ) == 0xFFFFFF; // ignore alpha
}
to
inline static bool isPaperColor( QRgb argb ) {
return (argb & 0xFFFFFF) == (Settings::paperColor().rgb() & 0xFFFFFF);
}
(obviously had to include "settings.h")
and now it works.
--
You received this bug notification because you are a member of Kubuntu
Bugs, which is subscribed to okular in Ubuntu.
https://bugs.launchpad.net/bugs/635026
Title:
Okular Trim margins doesn't work if paper colour is changed
To manage notifications about this bug go to:
https://bugs.launchpad.net/kdegraphics/+bug/635026/+subscriptions
More information about the kubuntu-bugs
mailing list