comparison libgui/graphics/QtHandlesUtils.cc @ 19273:b8ffcb88d77c gui-release

* QtHandlesUtils.cc: Fix typo in previous change.
author John W. Eaton <jwe@octave.org>
date Thu, 09 Oct 2014 16:06:02 -0400
parents eb9b2160e878
children 6d8d5d9f2264 be7ac98fab43
comparison
equal deleted inserted replaced
19272:eb9b2160e878 19273:b8ffcb88d77c
218 { 218 {
219 dim_vector dv (v.dims ()); 219 dim_vector dv (v.dims ());
220 220
221 if (dv.length () == 3 && dv(2) == 3) 221 if (dv.length () == 3 && dv(2) == 3)
222 { 222 {
223 int w = qMin (dv(1), static_cast<octave_idx_type (width)); 223 int w = qMin (dv(1), static_cast<octave_idx_type> (width));
224 int h = qMin (dv(0), static_cast<octave_idx_type (height)); 224 int h = qMin (dv(0), static_cast<octave_idx_type> (height));
225 225
226 int x_off = (w < width ? (width - w) / 2 : 0); 226 int x_off = (w < width ? (width - w) / 2 : 0);
227 int y_off = (h < height ? (height - h) / 2 : 0); 227 int y_off = (h < height ? (height - h) / 2 : 0);
228 228
229 QImage img (width, height, QImage::Format_ARGB32); 229 QImage img (width, height, QImage::Format_ARGB32);