mirror of
https://github.com/OPM/ResInsight.git
synced 2026-10-15 01:42:13 -05:00
#3187 symbols and labels for well path attributes, initial work.
This commit is contained in:
1 parent
46c5bbf4c6
commit
adc9ad322a
16 files changed
+472
-62
No files matched your search
@@ -23,6 +23,8 @@
|
||||
|
||||
#include "cafPdmUiComboBoxEditor.h"
|
||||
|
||||
#include <cmath>
|
||||
|
||||
CAF_PDM_SOURCE_INIT(RimWellPathAttribute, "WellPathAttribute");
|
||||
|
||||
namespace caf
|
||||
@@ -146,7 +148,7 @@ QString RimWellPathAttribute::generateInchesLabel(double diameter)
|
||||
double integerPart = 0.0;
|
||||
double fraction = modf(diameter, &integerPart);
|
||||
|
||||
int numerator = static_cast<int>(std::round(fraction / 0.125));
|
||||
int numerator = static_cast<int>(std::round(8.0 * fraction));
|
||||
|
||||
if (numerator > 0)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user