Fix status bar values when we move pixels

This commit is contained in:
David Capello 2016-05-27 13:22:25 -03:00
parent af2c2838e0
commit 34b8be3114

View File

@ -436,9 +436,12 @@ bool MovingPixelsState::onUpdateStatusBar(Editor* editor)
StatusBar::instance()->setStatusText
(100, ":pos: %d %d :size: %3d %3d :selsize: %d %d [%.02f%% %.02f%%] :angle: %.1f",
transform.bounds().x, transform.bounds().y,
imageSize.w, imageSize.h,
transform.bounds().w, transform.bounds().h,
int(transform.bounds().x),
int(transform.bounds().y),
imageSize.w,
imageSize.h,
int(transform.bounds().w),
int(transform.bounds().h),
(double)transform.bounds().w*100.0/imageSize.w,
(double)transform.bounds().h*100.0/imageSize.h,
180.0 * transform.angle() / PI);