[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdelibs/kdeprint/cups
From:       Michael Goffioul <goffioul () imec ! be>
Date:       2003-01-13 10:06:54
[Download RAW message or body]

CVS commit by goffioul: 

Update ImageableArea and PaperDimension according to selected page size


  M +6 -2      kmcupsmanager.cpp   1.46


--- kdelibs/kdeprint/cups/kmcupsmanager.cpp  #1.45:1.46
@@ -763,5 +763,9 @@ void KMCupsManager::saveDriverFile(DrMai
                                 int     p = line.find(':',8);
                                 keyword = line.mid(8,p-8);
-                                DrBase  *bopt = driver->findOption((keyword == \
"PageRegion" ? QString::fromLatin1("PageSize") : keyword)); +                         \
DrBase *bopt = 0; +                                if ( keyword == "PageRegion" || \
keyword == "ImageableArea" || keyword == "PaperDimension" ) +                         \
bopt = driver->findOption( QString::fromLatin1( "PageSize" ) ); +                     \
else +                                        bopt = driver->findOption( keyword );
                                 if (bopt)
                                         switch (bopt->type())


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic