Permalink
Browse files

Use DxfLinePattern of layer

  • Loading branch information...
feragon committed Jul 21, 2016
1 parent 5393cb7 commit d824af7c9d1ee8fe9088959f55e240c24d67e521
Showing with 4 additions and 0 deletions.
  1. +4 −0 lcviewernoqt/documentcanvas.cpp
@@ -380,6 +380,10 @@ void DocumentCanvas::drawEntity(LCVDrawItem_CSPtr entity) {
const double* path = &entityLinePattern->lcPattern()[0];
painter.set_dash(path, entityLinePattern->lcPattern().size(), 0., true);
}
else if(layer->linePattern() != nullptr && layer->linePattern()->lcPattern().size() > 0) {
const double* path = &layer->linePattern()->lcPattern()[0];
painter.set_dash(path, layer->linePattern()->lcPattern().size(), 0., true);
}
// Decide what color to render the entity into
if (entity->selected()) {

0 comments on commit d824af7

Please sign in to comment.