Subversion Repositories Scribus

Compare Revisions

Ignore whitespace Rev 22832 → Rev 22833

/trunk/Scribus/scribus/scprintengine_gdi.cpp
96,7 → 96,8
toFile = printerUseFilePort(options.printer);
if (toFile)
{
diaSelection = doc.DocName.right(doc.DocName.length() - doc.DocName.lastIndexOf("/") - 1);
QString docName = doc.documentFileName();
diaSelection = docName.right(docName.length() - docName.lastIndexOf("/") - 1);
diaSelection = diaSelection.left(diaSelection.indexOf("."));
diaSelection += ".prn";
PrefsContext* dirs = PrefsManager::instance()->prefsFile->getContext("dirs");
219,7 → 220,7
printPageFunc = (useGDI) ? &ScPrintEngine_GDI::printPage_GDI : &ScPrintEngine_GDI::printPage_PS;
 
// Setup document infos structure
wcsncpy (docName, (const WCHAR*) doc->DocName.utf16(), 511);
wcsncpy (docName, (const WCHAR*) doc->documentFileName().utf16(), 511);
ZeroMemory(&docInfo, sizeof(docInfo));
docInfo.cbSize = sizeof(docInfo);
docInfo.lpszDocName = docName;