summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/prc/writePRC.cc
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/utils/asymptote/prc/writePRC.cc')
-rw-r--r--Build/source/utils/asymptote/prc/writePRC.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/Build/source/utils/asymptote/prc/writePRC.cc b/Build/source/utils/asymptote/prc/writePRC.cc
index 1f3175053fc..8f1d7370f33 100644
--- a/Build/source/utils/asymptote/prc/writePRC.cc
+++ b/Build/source/utils/asymptote/prc/writePRC.cc
@@ -970,7 +970,9 @@ uint32_t makePRCID()
void writeUnit(PRCbitStream &out,bool fromCAD,double unit)
{
- out << fromCAD << unit;
+ static const double inches=72;
+ static const double cm=inches/2.54;
+ out << fromCAD << 10.0/cm; // Use bp.
}
void writeEmptyMarkups(PRCbitStream &out)