chiark
/
gitweb
/
~ijackson
/
trains.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
345f373
)
fix segment orientation for parts
author
ian
<ian>
Fri, 22 Oct 2004 23:45:16 +0000
(23:45 +0000)
committer
ian
<ian>
Fri, 22 Oct 2004 23:45:16 +0000
(23:45 +0000)
layout/layout
patch
|
blob
|
history
diff --git
a/layout/layout
b/layout/layout
index ba06d0a5ce9d7f1e1ddf6745e74de8edc189d5c9..342aaaa9f4dde80ca4445b01e130506abf560397 100755
(executable)
--- a/
layout/layout
+++ b/
layout/layout
@@
-1226,7
+1226,9
@@
sub cmd__obj ($) {
} else {
$ctx->{InRunObj}= $ctx_save->{InRunObj}."${obj_id}::";
}
- $ctx->{SegName}= $1 if $segments[0] =~ m,([^-]+)/,;
+ if ($segments[0] =~ m,(.*[^-]+)/,) {
+ $ctx->{SegName}= $1;
+ }
$ctx->{DrawMap}= sub {
my ($i) = @_;
$i= &{ $ctx_save->{DrawMap} }($i);