@@ -227,7 +227,7 @@ Item {
227
227
filterRect .x = rectX .value = rightX - filterRect .width ;
228
228
var middleY = filterRect .y + filterRect .height / 2 ;
229
229
var bottomY = filterRect .y + filterRect .height ;
230
- filterRect .height = rectH .value = value / Math .max (aspectRatio, 1e-06 );
230
+ filterRect .height = rectH .value = value * profile . sar / Math .max (aspectRatio, 1e-06 );
231
231
if (middleRadioButton .checked )
232
232
filterRect .y = rectY .value = middleY - filterRect .height / 2 ;
233
233
else if (bottomRadioButton .checked )
@@ -246,7 +246,7 @@ Item {
246
246
filterRect .y = rectY .value = bottomY - filterRect .height ;
247
247
var centerX = filterRect .x + filterRect .width / 2 ;
248
248
var rightX = filterRect .x + filterRect .width ;
249
- filterRect .width = rectW .value = value * aspectRatio;
249
+ filterRect .width = rectW .value = value / profile . sar * aspectRatio;
250
250
if (centerRadioButton .checked )
251
251
filterRect .x = rectX .value = centerX - filterRect .width / 2 ;
252
252
else if (rightRadioButton .checked )
@@ -734,7 +734,7 @@ Item {
734
734
filterRect .x = rectX .value = rightX - filterRect .width ;
735
735
var middleY = filterRect .y + filterRect .height / 2 ;
736
736
var bottomY = filterRect .y + filterRect .height ;
737
- filterRect .height = rectH .value = Math .round (filterRect .width / Math .max (aspectRatio, 1e-06 ));
737
+ filterRect .height = rectH .value = Math .round (filterRect .width * profile . sar / Math .max (aspectRatio, 1e-06 ));
738
738
if (middleRadioButton .checked )
739
739
filterRect .y = rectY .value = middleY - filterRect .height / 2 ;
740
740
else if (bottomRadioButton .checked )
0 commit comments