diff options
Diffstat (limited to 'tksao')
-rw-r--r-- | tksao/frame/base.C | 7 | ||||
-rw-r--r-- | tksao/frame/base.h | 5 |
2 files changed, 10 insertions, 2 deletions
diff --git a/tksao/frame/base.C b/tksao/frame/base.C index cb7f08a..25c5d46 100644 --- a/tksao/frame/base.C +++ b/tksao/frame/base.C @@ -134,9 +134,12 @@ Base::Base(Tcl_Interp* i, Tk_Canvas c, Tk_Item* item) useCrosshair = 0; precLinear_ = 8; - precDeg_ = 10; + precDeg_ = 7; precHMS_ = 4; precDMS_ = 3; + + precLenLinear_ = 8; + precLenDeg_ = 7; precArcmin_ = 5; precArcsec_ = 3; @@ -496,7 +499,7 @@ void Base::doubleToTclArray(double dd, const char* var, str << base << "," << mod << ends; ostringstream vstr; - vstr << setprecision(precLinear_) << dd << ends; + vstr << dd << ends; Tcl_SetVar2(interp, (char*)var, str.str().c_str(), vstr.str().c_str(), 0); } diff --git a/tksao/frame/base.h b/tksao/frame/base.h index 4de5d18..79a3fbc 100644 --- a/tksao/frame/base.h +++ b/tksao/frame/base.h @@ -246,6 +246,9 @@ public: int precDeg_; int precHMS_; int precDMS_; + + int precLenLinear_; + int precLenDeg_; int precArcmin_; int precArcsec_; @@ -1601,6 +1604,8 @@ public: void getPixelTableCmd(const Vector&, Coord::InternalSystem, int, int, char*); // Precision Commands + void precCmd(int, int, int, int, int, int, int, int); + // backward compatibilty backup void precCmd(int, int, int, int, int, int); // Print Commands |