[Kde-print-devel] [Bug 97694] "Print Format" page in kprinter: "Pages per Sheet", enabled radio button jumps upon "Save"
Cristian Tibirna
tibirna at kde.org
Tue Sep 27 07:01:44 CEST 2005
------- 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=97694
tibirna kde org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
------- Additional Comments From tibirna kde org 2005-09-27 07:01 -------
SVN commit 464359 by tibirna:
don't jump to "Other" when "1" chosen in "Pages per sheet". I'll still
have to look deeper at this code in the future (rewrite?)
BUG:97694
M +17 -11 kpqtpage.cpp
--- branches/KDE/3.5/kdelibs/kdeprint/kpqtpage.cpp #464358:464359
@ -108,7 +108,7 @
" <li> <b>Portrait.</b>.Portrait is the default setting. </li> "
" <li> <b>Landscape.</b> </li> "
" </ul> "
- " The icon changes according to your selection."
+ " The icon changes according to your selection."
" </qt>" );
setTitle(i18n("Print Format"));
@ -270,16 +270,22 @
ID = NUP_1;
if (opts["_kde-filters"].find("psnup") != -1)
{
- ID = opts["_kde-psnup-nup"].toInt();
- if (ID == 1 || ID == 2 || ID == 4)
- {
- if (ID == 4) ID = 3;
- ID--;
- }
- else
- {
- ID = NUP_OTHER;
- }
+ if (opts.contains("_kde-psnup-nup")) {
+ ID = opts["_kde-psnup-nup"].toInt();
+ if (ID == 1 || ID == 2 || ID == 4)
+ {
+ if (ID == 4) ID = 3;
+ ID--;
+ }
+ else
+ {
+ ID = NUP_OTHER;
+ }
+ }
+ else
+ {
+ ID = NUP_1;
+ }
}
m_nupbox->setButton(ID);
slotNupChanged(ID);
More information about the Kde-print-devel
mailing list