summaryrefslogtreecommitdiffstats
path: root/tksao/frame/compass.C
diff options
context:
space:
mode:
Diffstat (limited to 'tksao/frame/compass.C')
-rw-r--r--tksao/frame/compass.C12
1 files changed, 6 insertions, 6 deletions
diff --git a/tksao/frame/compass.C b/tksao/frame/compass.C
index 50fa2b4..ba6b71d 100644
--- a/tksao/frame/compass.C
+++ b/tksao/frame/compass.C
@@ -153,14 +153,14 @@ void Compass::renderPS(PSColorSpace mode)
{
ostringstream str;
str << "newpath "
- << aa.TkCanvasPs(parent->canvas) << ' '
+ << parent->TkCanvasPs(aa) << ' '
<< "moveto "
- << bb.TkCanvasPs(parent->canvas) << ' '
+ << parent->TkCanvasPs(bb) << ' '
<< "lineto stroke" << endl
<< "newpath "
- << aa.TkCanvasPs(parent->canvas) << ' '
+ << parent->TkCanvasPs(aa) << ' '
<< "moveto "
- << cc.TkCanvasPs(parent->canvas) << ' '
+ << parent->TkCanvasPs(cc) << ' '
<< "lineto stroke" << endl << ends;
Tcl_AppendResult(parent->interp, str.str().c_str(), NULL);
}
@@ -175,7 +175,7 @@ void Compass::renderPS(PSColorSpace mode)
if (northText) {
double angle = (bb-aa).angle();
- Vector ddd = dd.TkCanvasPs(parent->canvas);
+ Vector ddd = parent->TkCanvasPs(dd);
str << "gsave" << endl
<< "newpath " << endl
<< ddd << " moveto" << endl
@@ -216,7 +216,7 @@ void Compass::renderPS(PSColorSpace mode)
if (eastText) {
double angle = (cc-aa).angle();
- Vector eee = ee.TkCanvasPs(parent->canvas);
+ Vector eee = parent->TkCanvasPs(ee);
str << "gsave" << endl
<< "newpath " << endl
<< eee << " moveto" << endl