[Kst] kdeextragear-2/kst/kst
George Staikos
staikos at kde.org
Thu Aug 12 21:30:47 CEST 2004
CVS commit by staikos:
get rid of unnecessary i18n()
M +4 -4 kstviewwindow.cpp 1.33
--- kdeextragear-2/kst/kst/kstviewwindow.cpp #1.32:1.33
@@ -225,5 +225,5 @@ void KstViewWindow::immediatePrintToPng(
if (paint.begin(&pixmap)) {
- QString dotFormat = i18n(".%1").arg(format);
+ QString dotFormat = QString(".") + format;
int iPos = filename.findRev(dotFormat, -1, FALSE);
QString filenameNew;
@@ -231,11 +231,11 @@ void KstViewWindow::immediatePrintToPng(
filenameNew = filename;
} else {
- filenameNew = i18n("%1.%2").arg(filename).arg(format.lower());
+ filenameNew = filename + "." + format.lower();
}
view()->resizeForPrint(size);
view()->paint(P_EXPORT, paint);
- if( !pixmap.save(filenameNew, format.latin1())) {
- KstDebug::self()->log( i18n("Failed to save image to %1").arg(filename), KstDebug::Warning);
+ if (!pixmap.save(filenameNew, format.latin1())) {
+ KstDebug::self()->log(i18n("Failed to save image to %1").arg(filename), KstDebug::Warning);
}
view()->revertForPrint();
More information about the Kst
mailing list