Subversion Repositories Scribus

Compare Revisions

Ignore whitespace Rev 25087 → Rev 25088

/trunk/Scribus/scribus/plugins/barcodegenerator/barcodegenerator.cpp
819,9 → 819,10
"end\n"
);
QString comm("20 10 moveto <%1> <%2> /%3 /uk.co.terryburton.bwipp findresource exec\n");
QString bcString = ui.codeEdit->text();
QByteArray bcLatin1 = ui.codeEdit->text().toLatin1();
QByteArray bcUtf8 = ui.codeEdit->text().toUtf8();
QByteArray bcArray = (bcLatin1 != bcUtf8) ? ("\xef\xbb\xbf" + bcUtf8) : bcLatin1;
QByteArray bcArray = (bcString != QString::fromLatin1(bcLatin1)) ? ("\xef\xbb\xbf" + bcUtf8) : bcLatin1;
QString bcdata(bcArray.toHex());
QString bcopts(opts.toLatin1().toHex());
comm = comm.arg(bcdata, bcopts, map[ui.bcCombo->currentText()].command);