diff --git a/src/Mod/Sketcher/Gui/ViewProviderSketch.cpp b/src/Mod/Sketcher/Gui/ViewProviderSketch.cpp index db8c60a614..976d91c6f5 100644 --- a/src/Mod/Sketcher/Gui/ViewProviderSketch.cpp +++ b/src/Mod/Sketcher/Gui/ViewProviderSketch.cpp @@ -3728,14 +3728,12 @@ void ViewProviderSketch::draw(bool temp /*=false*/, bool rebuildinformationlayer } - double temprepscale = ( 0.5 * maxdisttocenterofmass ) / maxcurv; // just a factor to make a comb reasonably visible - - if( temprepscale > combrepscale ) + double temprepscale = 0; + if (maxcurv > 0) + temprepscale = (0.5 * maxdisttocenterofmass) / maxcurv; // just a factor to make a comb reasonably visible + + if (temprepscale > combrepscale) combrepscale = temprepscale; - - - } - else { } }