must have a width/height in order to set width/height
Failing to give a proper width/height will cause ImageMagick to die with an assertion error
This commit is contained in:
parent
40805cee48
commit
7389128d99
2 changed files with 5 additions and 0 deletions
|
|
@ -621,6 +621,9 @@ sub setConfiguration {
|
|||
my $self = shift;
|
||||
my $config = shift;
|
||||
|
||||
$config->{graph_imageWidth} ||= 300;
|
||||
$config->{graph_imageHeight} ||= 300;
|
||||
|
||||
$self->setPalette(WebGUI::Image::Palette->new($self->session, $config->{graph_paletteId}));
|
||||
$self->setLabelOffset($config->{graph_labelOffset});
|
||||
$self->setLabelFontSize($config->{graph_labelFontSize});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue