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.
I confirmed this is the case, so ... there's this function "isWhite" in utils.cpp which isn't used anywhere else than in Utils:: imageBoundingBo x.
I modified it from
inline static bool isWhite( QRgb argb ) {
return ( argb & 0xFFFFFF ) == 0xFFFFFF; // ignore alpha
}
to
inline static bool isPaperColor( QRgb argb ) { :paperColor( ).rgb() & 0xFFFFFF);
return (argb & 0xFFFFFF) == (Settings:
}
(obviously had to include "settings.h")
and now it works.