From f6b1689b7c14f57a2c4cf4433dbeb1db62d85af0 Mon Sep 17 00:00:00 2001 From: Lukas Mueller Date: Wed, 12 May 2010 19:51:40 +0000 Subject: [PATCH] setting the map units in the constructor M Scaffold.pm git-svn-id: svn+ssh://svn.sgn.cornell.edu/cxgn/Cview/trunk@18237 b4ddb4e3-33f1-0310-aa89-e703427ae9b8 --- lib/CXGN/Cview/Chromosome/Scaffold.pm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/CXGN/Cview/Chromosome/Scaffold.pm b/lib/CXGN/Cview/Chromosome/Scaffold.pm index ae768b3..f708675 100644 --- a/lib/CXGN/Cview/Chromosome/Scaffold.pm +++ b/lib/CXGN/Cview/Chromosome/Scaffold.pm @@ -48,9 +48,8 @@ sub new { #$chr->set_url($self->{url}); $self->distribute_labels(); $self->distribute_label_stacking(); - $self->set_units("bp"); - $self->get_ruler()->set_units("bp"); - + $self->set_ruler(CXGN::Cview::Ruler::ScaffoldRuler->new()); + $self->set_units('bp'); return $self; } -- 2.11.4.GIT