Permalink
Browse files

added a debug test for layer plot flag

  • Loading branch information...
1 parent 167c4d0 commit f939e63a8ac37847cb2306c3558be6d28438c712 @Rallaz Rallaz committed Dec 7, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 librecad/src/lib/filters/rs_filterdxfrw.cpp
@@ -151,6 +151,8 @@ void RS_FilterDXFRW::addLayer(const DRW_Layer &data) {
}
//help layer doesn't appear in printing
layer->setHelpLayer(! data.plotF);
+ if (layer->isHelpLayer())
+ RS_DEBUG->print(RS_Debug::D_WARNING, "RS_FilterDXF::addLayer: layer %s is help layer", layer->getName().toStdString().c_str());
RS_DEBUG->print("RS_FilterDXF::addLayer: add layer to graphic");
graphic->addLayer(layer);
@@ -1610,6 +1612,8 @@ void RS_FilterDXFRW::writeLayers(){
lay.lWeight = widthToNumber(pen.getWidth());
lay.lineType = lineTypeToName(pen.getLineType()).toStdString();
lay.plotF = ! l->isHelpLayer(); // a help layer should not appear in print
+ if (!lay.plotF)
+ RS_DEBUG->print(RS_Debug::D_WARNING, "RS_FilterDXF::writeLayers: layer %s saved as help layer", lay.name.c_str());
// lay.lineType = lineType.toStdString(); //.toLatin1().data();
dxf->writeLayer(&lay);
}

0 comments on commit f939e63

Please sign in to comment.