-# $Id: editor.tcl,v 1.62.2.6 2007/07/19 04:45:07 marko Exp $
+# $Id: editor.tcl,v 1.62.2.7 2007/07/19 08:00:47 marko Exp $
#
# Copyright 2004, 2005 University of Zagreb, Croatia. All rights reserved.
#
set ifc [ifcByPeer $pnode [getNodeMirror $node]]
if { $pcanvas != $curcanvas } {
set label [.c create text $x $y -fill blue \
- -text "[getNodeName $pnode]:$ifc
-@[getCanvasName $pcanvas]" \
+ -text "[getNodeName $pnode]:$ifc\r@[getCanvasName $pcanvas]" \
-tags "nodelabel $node" -justify center]
} else {
set label [.c create text $x $y -fill blue \
$c coords $newlink $lastX $lastY $x $y
} elseif { $activetool == "select" && \
( $curobj == $selectbox || $curtype == "background" || $curtype == "grid")} {
- if {$selectbox == ""} {
- set selectbox [$c create line \
- $lastX $lastY $x $lastY $x $y $lastX $y $lastX $lastY \
- -dash {10 4} -fill black -width 1 -tags "selectbox"]
- $c raise $selectbox "background || link || linklabel || interface"
+ if {$selectbox == ""} {
+ set selectbox [$c create line \
+ $lastX $lastY $x $lastY $x $y $lastX $y $lastX $lastY \
+ -dash {10 4} -fill black -width 1 -tags "selectbox"]
+ $c raise $selectbox "background || link || linklabel || interface"
} else {
$c coords $selectbox \
$lastX $lastY $x $lastY $x $y $lastX $y $lastX $lastY