| Summary: | Resize dialog limits image width/height to 4 digits | ||
|---|---|---|---|
| Product: | [Applications] digikam | Reporter: | Martin Rubli <kde> |
| Component: | Showfoto-Plugins | Assignee: | Digikam Developers <digikam-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | caulier.gilles |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | unspecified | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | 0.9.0 | |
| Sentry Crash Report: | |||
|
Description
Martin Rubli
2006-08-09 08:22:20 UTC
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);
|