diff --git a/gerbview/class_gerber_draw_item.h b/gerbview/class_gerber_draw_item.h index 1d30606ba4..1d67d6edeb 100644 --- a/gerbview/class_gerber_draw_item.h +++ b/gerbview/class_gerber_draw_item.h @@ -179,6 +179,17 @@ public: bool Save( FILE* aFile ) const; + +#if defined(DEBUG) + /** + * Function Show + * is used to output the object tree, currently for debugging only. + * @param nestLevel An aid to prettier tree indenting, and is the level + * of nesting of this object within the overall tree. + * @param os The ostream& to output to. + */ + virtual void Show( int nestLevel, std::ostream& os ); +#endif }; #endif /* CLASS_GERBER_DRAW_ITEM_H */ diff --git a/gerbview/rs274d.cpp b/gerbview/rs274d.cpp index b5f62fe824..ff73f3b6a6 100644 --- a/gerbview/rs274d.cpp +++ b/gerbview/rs274d.cpp @@ -1006,7 +1006,7 @@ bool GERBER::Execute_DCODE_Command( WinEDA_GerberFrame* frame, { if( m_LayerNegative ^ m_ImageNegative ) gbritem->m_Flags |= DRAW_ERASED; - D( printf( "\nm_Flags=0x%08X\n", edge_poly->m_Flags ); ) + D( printf( "\nm_Flags=0x%08X\n", gbritem->m_Flags ); ) } break; }