summaryrefslogtreecommitdiff
path: root/lib/Graph
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Graph')
-rw-r--r--lib/Graph/GEXF/Role/Viz/Shape.pm7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/Graph/GEXF/Role/Viz/Shape.pm b/lib/Graph/GEXF/Role/Viz/Shape.pm
index f8e57de..1f0ba67 100644
--- a/lib/Graph/GEXF/Role/Viz/Shape.pm
+++ b/lib/Graph/GEXF/Role/Viz/Shape.pm
@@ -16,7 +16,7 @@ role {
my ( $type, $default );
- $type = lcfirst( $p->for ) . 'Shape';
+ $type = ucfirst( $p->for ) . 'Shape';
if ( $p->for eq 'node' ) {
$default = 'disc';
@@ -26,8 +26,9 @@ role {
}
has shape => (
- is => 'rw',
- isa => $type,
+ is => 'rw',
+ isa => $type,
+ default => $default,
);
};