Fixing a backward compatibility issue
[u/mrichter/AliRoot.git] / MUON / mapping / AliMpRowPainter.cxx
index 831c200..72345b4 100755 (executable)
 // $Id$
 // $MpId: AliMpRowPainter.cxx,v 1.8 2006/05/24 13:58:32 ivana Exp $
 // Category: graphics
-//
+
+//-----------------------------------------------------------------------------
 // Class AliMpRowPainter
 // ---------------------
 // Class for drawing a row into canvas
 // Included in AliRoot: 2003/05/02
 // Authors: David Guez, IPN Orsay
+//-----------------------------------------------------------------------------
   
 #include "AliMpRowPainter.h"
 #include "AliMpGraphContext.h"
@@ -70,7 +72,7 @@ TVector2 AliMpRowPainter::GetPosition() const
 {
 /// Get the owned object's position
 
-  return fRow->Position();
+  return TVector2(fRow->GetPositionX(), fRow->GetPositionY());
 }
 
 //_______________________________________________________________________
@@ -78,7 +80,7 @@ TVector2 AliMpRowPainter::GetDimensions() const
 {
 /// Get the owned object's dimensions
 
-  return fRow->Dimensions();
+  return TVector2(fRow->GetDimensionX(), fRow->GetDimensionY());
 }
 
 //_______________________________________________________________________
@@ -105,7 +107,8 @@ void AliMpRowPainter::Draw(Option_t *option)
        AliMpVRowSegment *rowSegment = fRow->GetRowSegment(iRowSeg);
        gr->Push();
 
-       gr->SetPadPosForReal(rowSegment->Position(),rowSegment->Dimensions());
+       gr->SetPadPosForReal(TVector2(rowSegment->GetPositionX(),rowSegment->GetPositionY()),
+                             TVector2(rowSegment->GetDimensionX(),rowSegment->GetDimensionY()));
        DrawObject(rowSegment,option+1);
       
        gr->Pop();