diff --git a/src/Gui/SoDatumLabel.cpp b/src/Gui/SoDatumLabel.cpp index 6953cf8d1a..dee7922338 100644 --- a/src/Gui/SoDatumLabel.cpp +++ b/src/Gui/SoDatumLabel.cpp @@ -317,21 +317,6 @@ private: std::vector computeRadiusDiameterBBox() const { - SbVec2s imgsize; - int nc {}; - int srcw = 1; - int srch = 1; - - const unsigned char * dataptr = label->image.getValue(imgsize, nc); - if (dataptr) { - srcw = imgsize[0]; - srch = imgsize[1]; - } - - float aspectRatio = (float) srcw / (float) srch; - float imgHeight = scale * (float) (srch); - float imgWidth = aspectRatio * imgHeight; - // get the points stored in the pnt field const SbVec3f *points = label->pnts.getValues(0); if (label->pnts.getNum() < 2) { @@ -342,7 +327,6 @@ private: SoDatumLabel::DiameterGeometry geom = label->calculateDiameterGeometry(points); std::vector corners; - float margin = imgHeight / 4.0F; // include main points and line segment points around text corners.push_back(geom.p1);