Loading common/view/view.cpp +15 −3 Original line number Original line Diff line number Diff line Loading @@ -314,8 +314,8 @@ struct VIEW::updateItemsColor // Obtain the color that should be used for coloring the item // Obtain the color that should be used for coloring the item const COLOR4D color = painter->GetColor( aItem, layer ); const COLOR4D color = painter->GetColor( aItem, layer ); int group = aItem->getGroup( layer ); int group = aItem->getGroup( layer ); wxASSERT( group >= 0 ); if( group > 0) gal->ChangeGroupColor( group, color ); gal->ChangeGroupColor( group, color ); } } Loading @@ -327,6 +327,10 @@ struct VIEW::updateItemsColor void VIEW::UpdateLayerColor( int aLayer ) void VIEW::UpdateLayerColor( int aLayer ) { { // There is no point in updating non-cached layers if( !m_layers[aLayer].cached ) return; BOX2I r; BOX2I r; r.SetMaximum(); r.SetMaximum(); Loading @@ -345,8 +349,12 @@ void VIEW::UpdateAllLayersColor() for( LayerMapIter i = m_layers.begin(); i != m_layers.end(); ++i ) for( LayerMapIter i = m_layers.begin(); i != m_layers.end(); ++i ) { { VIEW_LAYER* l = &( ( *i ).second ); VIEW_LAYER* l = &( ( *i ).second ); updateItemsColor visitor( l->id, m_painter, m_gal ); // There is no point in updating non-cached layers if( !m_layers[l->id].cached ) continue; updateItemsColor visitor( l->id, m_painter, m_gal ); l->items->Query( r, visitor ); l->items->Query( r, visitor ); } } } } Loading Loading @@ -374,6 +382,10 @@ struct VIEW::changeItemsDepth void VIEW::ChangeLayerDepth( int aLayer, int aDepth ) void VIEW::ChangeLayerDepth( int aLayer, int aDepth ) { { // There is no point in updating non-cached layers if( !m_layers[aLayer].cached ) return; BOX2I r; BOX2I r; r.SetMaximum(); r.SetMaximum(); Loading Loading
common/view/view.cpp +15 −3 Original line number Original line Diff line number Diff line Loading @@ -314,8 +314,8 @@ struct VIEW::updateItemsColor // Obtain the color that should be used for coloring the item // Obtain the color that should be used for coloring the item const COLOR4D color = painter->GetColor( aItem, layer ); const COLOR4D color = painter->GetColor( aItem, layer ); int group = aItem->getGroup( layer ); int group = aItem->getGroup( layer ); wxASSERT( group >= 0 ); if( group > 0) gal->ChangeGroupColor( group, color ); gal->ChangeGroupColor( group, color ); } } Loading @@ -327,6 +327,10 @@ struct VIEW::updateItemsColor void VIEW::UpdateLayerColor( int aLayer ) void VIEW::UpdateLayerColor( int aLayer ) { { // There is no point in updating non-cached layers if( !m_layers[aLayer].cached ) return; BOX2I r; BOX2I r; r.SetMaximum(); r.SetMaximum(); Loading @@ -345,8 +349,12 @@ void VIEW::UpdateAllLayersColor() for( LayerMapIter i = m_layers.begin(); i != m_layers.end(); ++i ) for( LayerMapIter i = m_layers.begin(); i != m_layers.end(); ++i ) { { VIEW_LAYER* l = &( ( *i ).second ); VIEW_LAYER* l = &( ( *i ).second ); updateItemsColor visitor( l->id, m_painter, m_gal ); // There is no point in updating non-cached layers if( !m_layers[l->id].cached ) continue; updateItemsColor visitor( l->id, m_painter, m_gal ); l->items->Query( r, visitor ); l->items->Query( r, visitor ); } } } } Loading Loading @@ -374,6 +382,10 @@ struct VIEW::changeItemsDepth void VIEW::ChangeLayerDepth( int aLayer, int aDepth ) void VIEW::ChangeLayerDepth( int aLayer, int aDepth ) { { // There is no point in updating non-cached layers if( !m_layers[aLayer].cached ) return; BOX2I r; BOX2I r; r.SetMaximum(); r.SetMaximum(); Loading