diff --git a/src/Gui/SoFCUnifiedSelection.cpp b/src/Gui/SoFCUnifiedSelection.cpp index d9e8672af6..7013d17550 100644 --- a/src/Gui/SoFCUnifiedSelection.cpp +++ b/src/Gui/SoFCUnifiedSelection.cpp @@ -67,7 +67,6 @@ #include #include -#include #include #include #include @@ -371,13 +370,12 @@ SoFCUnifiedSelection::handleEvent(SoHandleEventAction * action) this->preSelection = 1; static char buf[513]; - int p = Base::UnitsApi::getDecimals(); - snprintf(buf,512,"Preselected: %s.%s.%s (%.*g,%.*g,%.*g)",documentName.c_str() + snprintf(buf,512,"Preselected: %s.%s.%s (%g, %g, %g)",documentName.c_str() ,objectName.c_str() ,subElementName.c_str() - ,p,pp->getPoint()[0] - ,p,pp->getPoint()[1] - ,p,pp->getPoint()[2]); + ,pp->getPoint()[0] + ,pp->getPoint()[1] + ,pp->getPoint()[2]); getMainWindow()->showMessage(QString::fromLatin1(buf)); @@ -474,13 +472,12 @@ SoFCUnifiedSelection::handleEvent(SoHandleEventAction * action) if (ok) type = SoSelectionElementAction::Append; if (mymode == OFF) { - int p = Base::UnitsApi::getDecimals(); - snprintf(buf,512,"Selected: %s.%s.%s (%.*g,%.*g,%.*g)",documentName.c_str() + snprintf(buf,512,"Selected: %s.%s.%s (%g, %g, %g)",documentName.c_str() ,objectName.c_str() ,subElementName.c_str() - ,p,pp->getPoint()[0] - ,p,pp->getPoint()[1] - ,p,pp->getPoint()[2]); + ,pp->getPoint()[0] + ,pp->getPoint()[1] + ,pp->getPoint()[2]); getMainWindow()->showMessage(QString::fromLatin1(buf)); } @@ -513,13 +510,12 @@ SoFCUnifiedSelection::handleEvent(SoHandleEventAction * action) } if (mymode == OFF) { - int p = Base::UnitsApi::getDecimals(); - snprintf(buf,512,"Selected: %s.%s.%s (%.*g,%.*g,%.*g)",documentName.c_str() + snprintf(buf,512,"Selected: %s.%s.%s (%g, %g, %g)",documentName.c_str() ,objectName.c_str() ,subElementName.c_str() - ,p,pp->getPoint()[0] - ,p,pp->getPoint()[1] - ,p,pp->getPoint()[2]); + ,pp->getPoint()[0] + ,pp->getPoint()[1] + ,pp->getPoint()[2]); getMainWindow()->showMessage(QString::fromLatin1(buf)); }