CComponentsPicture: fix internal value for dimension vars

The values contained not values from the scaled image file.
This commit is contained in:
2015-06-30 21:02:41 +02:00
parent 39796eda68
commit 5e380fa4f8

View File

@@ -130,6 +130,8 @@ void CComponentsPicture::initCCItem()
//if initialized dimension values = 0, set current object dimension values to real image size otherwise use defined size
g_PicViewer->getSize(pic_name.c_str(), (width == 0 ? &width : &w_pic), (height == 0 ? &height : &h_pic));
g_PicViewer->rescaleImageDimensions(&w_pic, &h_pic, width, height);
width = w_pic;
height = h_pic;
}
}