X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fbase%2Frs_filtercxf.cpp;h=1040b03f1a47b109fcdbaa3c0c397cb4a71e52db;hb=5374cdbb127a1bced9a65abeb30b1ef4eb5e35a7;hp=b3bbfe46bcd900963f6ef208cf8d07bfa0f540b6;hpb=89e127aa3dbd74d3158e6dbe0ca1703420c04395;p=architektonas diff --git a/src/base/rs_filtercxf.cpp b/src/base/rs_filtercxf.cpp index b3bbfe4..1040b03 100644 --- a/src/base/rs_filtercxf.cpp +++ b/src/base/rs_filtercxf.cpp @@ -18,7 +18,6 @@ #include #include -//#include "rs_regexp.h" #include "rs_font.h" #include "rs_utility.h" #include "rs_system.h" @@ -54,11 +53,11 @@ bool RS_FilterCXF::fileImport(Drawing & g, const QString & file, RS2::FormatType bool success = false; // Load font file as we normally do, but the font doesn't own the - // letters (we'll add them to the graphic instead. Hence 'false'). + // letters (we'll add them to the graphic instead. Hence 'false'). RS_Font font(file, false); success = font.loadFont(); - if (success == false) + if (!success) { RS_DEBUG->print(RS_Debug::D_WARNING, "Cannot open CXF file '%s'.", file.toLatin1().data()); return false; @@ -75,15 +74,15 @@ bool RS_FilterCXF::fileImport(Drawing & g, const QString & file, RS2::FormatType RS_BlockList * letterList = font.getLetterList(); - for(uint i=0; igetName().at(0).unicode(), 16); while (uCode.length() < 4) - uCode="0"+uCode; + uCode = "0" + uCode; //ch->setName("[" + uCode + "] " + ch->getName()); //letterList->rename(ch, QString("[%1]").arg(ch->getName())); @@ -106,7 +105,7 @@ bool RS_FilterCXF::fileImport(Drawing & g, const QString & file, RS2::FormatType */ bool RS_FilterCXF::fileExport(Drawing & g, const QString & file, RS2::FormatType /*type*/) { - RS_DEBUG->print("CXF Filter: exporting file '%s'...", file.toLatin1().data()); + RS_DEBUG->print("CXF Filter: exporting file '%s'...", file.toAscii().data()); // crashes under windoze xp: //std::ofstream fout;