Hotfix for issue #3480.

This commit is contained in:
Hombre
2016-10-24 01:14:35 +02:00
parent fca99676b6
commit 22d8869953
3 changed files with 13 additions and 2 deletions

View File

@@ -110,6 +110,16 @@ void CropHandler::sizeChanged (int x, int y, int ow, int oh) // the ipc notif
*/
}
bool CropHandler::isFullDisplay ()
{
int w, h;
getFullImageSize(w, h);
if (!w) {
return false;
}
return cropW == w && cropH == h;
}
double CropHandler::getFitCropZoom ()
{
double z1 = (double) wh / cropParams.h;