diff --git a/src/Mod/TechDraw/App/DrawComplexSection.cpp b/src/Mod/TechDraw/App/DrawComplexSection.cpp index 2846af7ecb..2065c0926e 100644 --- a/src/Mod/TechDraw/App/DrawComplexSection.cpp +++ b/src/Mod/TechDraw/App/DrawComplexSection.cpp @@ -1558,13 +1558,13 @@ DrawComplexSection::findNormalForFace(const TopoDS_Face& face, const std::vector>& normalKV, const std::vector& segmentEdges) { - int index = getSegmentIndex(face, segmentEdges); + size_t index = getSegmentIndex(face, segmentEdges); if (index < 0 || index >= segmentEdges.size()) { //NOLINT throw Base::RuntimeError("DCS::findNormalForFace - did not find normal for face!"); } for (auto& keyValue : normalKV) { - if (keyValue.first == index) { + if (static_cast(keyValue.first) == index) { return keyValue; } } diff --git a/src/Mod/TechDraw/Gui/QGIView.cpp b/src/Mod/TechDraw/Gui/QGIView.cpp index 0f3ca64fc1..19b0574b6d 100644 --- a/src/Mod/TechDraw/Gui/QGIView.cpp +++ b/src/Mod/TechDraw/Gui/QGIView.cpp @@ -74,8 +74,6 @@ using namespace TechDrawGui; using namespace TechDraw; using DU = DrawUtil; -const float labelCaptionFudge = 0.2f; // temp fiddle for devel - QGIView::QGIView() :QGraphicsItemGroup(), m_isHovered(false),