[Digikam-devel] [Bug 132113] Resize dialog limits image width/height to 4 digits
Marcel Wiesweg
marcel.wiesweg at gmx.de
Fri Aug 11 22:59:43 BST 2006
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=132113
marcel.wiesweg gmx de changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
------- Additional Comments From marcel.wiesweg gmx de 2006-08-11 23:59 -------
SVN commit 572217 by mwiesweg:
Adapt absolute maximum in ResizeDlg to current image dimension
BUG: 132113
M +2 -2 imageresizedlg.cpp
--- trunk/extragear/graphics/digikam/utilities/imageeditor/tools/imageresizedlg.cpp #572216:572217
@ -89,13 +89,13 @
// -------------------------------------------------------------
label = new QLabel(i18n("Width:"), plainPage(), "w");
- d->wInput = new KIntSpinBox(1, 9999, 1, *d->width, 10, plainPage());
+ d->wInput = new KIntSpinBox(1, QMAX(*d->width * 10, 9999), 1, *d->width, 10, plainPage());
d->wInput->setName("w");
topLayout->addWidget(label, 0, 0);
topLayout->addWidget(d->wInput, 0, 1);
label = new QLabel(i18n("Height:"), plainPage());
- d->hInput = new KIntSpinBox(1, 9999, 1, *d->height, 10, plainPage());
+ d->hInput = new KIntSpinBox(1, QMAX(*d->height * 10, 9999), 1, *d->height, 10, plainPage());
d->hInput->setName("h");
topLayout->addWidget(label, 0, 2);
topLayout->addWidget(d->hInput, 0, 3);
More information about the Digikam-devel
mailing list