diff --git a/Det/VPDet/src/Lib/legacy/DeVPSensor.cpp b/Det/VPDet/src/Lib/legacy/DeVPSensor.cpp index abac8073e62055190a30b5171e7aecc2a4b3d9ad..d2b59da3de74373bdedaa296721c020a53d83b39 100644 --- a/Det/VPDet/src/Lib/legacy/DeVPSensor.cpp +++ b/Det/VPDet/src/Lib/legacy/DeVPSensor.cpp @@ -209,8 +209,7 @@ bool DeVPSensor::pointToChannel( const Gaudi::XYZPoint& point, const bool local, row = int( localPoint.y() / m_cache.pixelSize ); if ( row >= m_cache.nRows ) row = m_cache.nRows - 1; } - channel.setCol( LHCb::Detector::VPChannelID::ColumnID{col} ); - channel.setRow( LHCb::Detector::VPChannelID::RowID{row} ); + channel.setCol( LHCb::Detector::VPChannelID::ColumnID{col} ).setRow( LHCb::Detector::VPChannelID::RowID{row} ); break; } x0 += m_cache.chipSize + m_cache.interChipDist;