|
From: <joh...@ie...> - 2000-05-12 20:00:33
|
Patch: vhclmaps-000510-johnston-025
For: vhclmaps-0.7.4
Author: joh...@us...
Subject: fix bug in utmviewer moveview command
Requires:
This is an intermediate patch to vhclmaps-0.7.4. To apply, cd to the
top-level directory of the vhclmaps source tree (the directory with src
and config subdirs), and apply like this:
patch -p0 <ThisFile
Summary of Changes:
- fix bug in utmviewer "moveview" command, because of change to
ComValue::geta that made it return a Component* instead of a
ComponentView*.
Index: UtmUnidraw/utmfunc.c
diff -c UtmUnidraw/utmfunc.c:1.4 UtmUnidraw/utmfunc.c:1.5
*** UtmUnidraw/utmfunc.c:1.4 Fri Mar 24 23:20:58 2000
--- src/UtmUnidraw/utmfunc.c Wed May 10 03:25:10 2000
***************
*** 122,128 ****
PasteCmd* cmd = new PasteCmd(_ed, new Clipboard(vhclpict));
execute_log(cmd);
! ComValue result(vhclpict->classid(), (void*)new ComponentView(vhclpict));
result.object_compview(true);
push_stack(result);
--- 122,130 ----
PasteCmd* cmd = new PasteCmd(_ed, new Clipboard(vhclpict));
execute_log(cmd);
! ComponentView* view = new ComponentView(vhclpict);
! vhclpict->Attach(view);
! ComValue result(vhclpict->classid(), (void*)view);
result.object_compview(true);
push_stack(result);
***************
*** 154,163 ****
yloc = utm_yloc.float_val();
}
! ComponentView* compview =
! (ComponentView*)compval.geta(OverlaysComp::class_symid());
! OverlaysComp* vhclpict =
! compview ? (OverlaysComp*)compview->GetSubject() : nil;
if (vhclpict) {
Selection* sel = _ed->GetSelection();
sel->Clear();
--- 156,163 ----
yloc = utm_yloc.float_val();
}
! OverlaysComp* vhclpict =
! (OverlaysComp*)compval.geta(OverlaysComp::class_symid());
if (vhclpict) {
Selection* sel = _ed->GetSelection();
sel->Clear();
*** /dev/null Wed May 10 03:25:17 PDT 2000
--- patches/vhclmaps-000510-johnston-025
*************** patches/vhclmaps-000510-johnston-025
*** 0 ****
--- 1 ----
+ vhclmaps-000510-johnston-025
|