Browse Source

Very minor changes. ( changes in clipper are made to avoid coverity minor warnings).

pull/7/head
jean-pierre charras 10 years ago
parent
commit
f67c7fe052
  1. 5
      pcbnew/pcbframe.cpp
  2. 6
      polygon/clipper.cpp

5
pcbnew/pcbframe.cpp

@ -980,14 +980,13 @@ void PCB_EDIT_FRAME::ScriptingConsoleEnableDisable( wxCommandEvent& aEvent )
{
wxWindow * pythonPanelFrame = findPythonConsole();
bool pythonPanelShown = false;
bool pythonPanelShown = true;
if( pythonPanelFrame == NULL )
pythonPanelFrame = new PYTHON_CONSOLE_FRAME( this, pythonConsoleNameId() );
else
pythonPanelShown = pythonPanelFrame->IsShown();
pythonPanelShown = ! pythonPanelFrame->IsShown();
pythonPanelShown = ! pythonPanelShown;
pythonPanelFrame->Show( pythonPanelShown );
}

6
polygon/clipper.cpp

@ -879,6 +879,9 @@ ClipperBase::ClipperBase() //constructor
{
m_CurrentLM = m_MinimaList.begin(); //begin() == end() here
m_UseFullRange = false;
//Clear vars to make coverity happy:
m_PreserveCollinear = m_HasOpenPaths = false;
}
//------------------------------------------------------------------------------
@ -3624,6 +3627,9 @@ ClipperOffset::ClipperOffset(double miterLimit, double arcTolerance)
this->MiterLimit = miterLimit;
this->ArcTolerance = arcTolerance;
m_lowest.X = -1;
//Clear temp vars to make coverity happy.
m_delta = m_sinA = m_sin = m_cos = m_miterLim = m_StepsPerRad = 0.0;
}
//------------------------------------------------------------------------------

Loading…
Cancel
Save