+ fix build problems with MSVC and libpack

This commit is contained in:
wmayer
2015-09-21 00:45:03 +02:00
parent e6d54c6df9
commit e0bdf24c95
10 changed files with 26 additions and 12 deletions

View File

@@ -28,6 +28,8 @@
# include <QTimer>
#endif
#include <boost/math/special_functions/round.hpp>
#include "ui_TaskLinearPatternParameters.h"
#include "TaskLinearPatternParameters.h"
#include "TaskMultiTransformParameters.h"
@@ -278,7 +280,7 @@ void TaskLinearPatternParameters::onOccurrences(const double n) {
if (blockUpdate)
return;
PartDesign::LinearPattern* pcLinearPattern = static_cast<PartDesign::LinearPattern*>(getObject());
pcLinearPattern->Occurrences.setValue(round(n));
pcLinearPattern->Occurrences.setValue(boost::math::round(n));
exitSelectionMode();
kickUpdateViewTimer();
@@ -380,7 +382,7 @@ const double TaskLinearPatternParameters::getLength(void) const
const unsigned TaskLinearPatternParameters::getOccurrences(void) const
{
return round(ui->spinOccurrences->value().getValue());
return boost::math::round(ui->spinOccurrences->value().getValue());
}