layoutXY: Fix error handling at missing base widget (CreatePanel.pl)
Warning, cannot access the index:
_darcs/index: opening of '_darcs/index' failed: permission denied (Permission denied)
diff -rN -u old-bii_scripts/bin/CreatePanel.pl new-bii_scripts/bin/CreatePanel.pl
--- old-bii_scripts/bin/CreatePanel.pl 2022-12-09 20:07:09.306774064 +0100
+++ new-bii_scripts/bin/CreatePanel.pl 2022-12-09 20:07:09.306774064 +0100
@@ -627,8 +627,9 @@
my $rH_Attr;
$rH_Attr = $options{SUBSTITUTIONS} if( defined $options{SUBSTITUTIONS});
my ($base, $panelWidth, $panelHeight) = getDisplay($baseWidget);
+ die "can' find base widget: \'$baseWidget\'" unless defined $base;
+
my $prEdl = setWidget($base,$panelWidth,$panelHeight,$rH_Attr, 1,0,0);
- die "can' find base widget: \'$baseWidget\'" unless defined $prEdl;
print "layout XY: base panel: $baseWidget: w=$panelWidth, h=$panelHeight\n" if $opt_v == 1;
my($p,$xPos,$yPos) = setTitle($rH_options,0,0) if defined $rH_options->{TITLE};
patch 3bd1cf844642918f585fc52953705663e3d74bba
Author: Bernhard.Kuner@bessy.de
Date: Thu May 6 15:15:28 CEST 2021
* layoutXY: Fix error handling at missing base widget (CreatePanel.pl