Fix possible crash in various view providers, fix formatting of Coin debug output, fix warning and compiler errors with Coin2 in SoDatumLabel

This commit is contained in:
unknown
2012-07-18 10:40:36 +02:00
parent 1769157de0
commit c2c5b137f2
7 changed files with 24 additions and 22 deletions

View File

@@ -121,8 +121,8 @@ bool ViewProviderPad::onDelete(const std::vector<std::string> &)
{
// get the support and Sketch
PartDesign::Pad* pcPad = static_cast<PartDesign::Pad*>(getObject());
Sketcher::SketchObject *pcSketch;
App::DocumentObject *pcSupport;
Sketcher::SketchObject *pcSketch = 0;
App::DocumentObject *pcSupport = 0;
if (pcPad->Sketch.getValue()){
pcSketch = static_cast<Sketcher::SketchObject*>(pcPad->Sketch.getValue());
pcSupport = pcSketch->Support.getValue();