Prefer to use BaseClass's isDerivedFrom<T> over non template or Base::Type's
Regex based changes, manually verified
This commit is contained in:
@@ -110,7 +110,7 @@ void ViewProviderDimension::attach(App::DocumentObject *pcFeat)
|
||||
|
||||
// sPixmap = "TechDraw_Dimension";
|
||||
setPixmapForType();
|
||||
if (getViewObject()->isDerivedFrom(TechDraw::LandmarkDimension::getClassTypeId())) {
|
||||
if (getViewObject()->isDerivedFrom<TechDraw::LandmarkDimension>()) {
|
||||
sPixmap = "TechDraw_LandmarkDimension";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user