Archived issue #0023497
Units package raises exception for composite units
Description
When unit is defined through power factor like sq. followed by unit name with factor prefix, e.g. mm, exception is raised.
Debugger stops in static function CalculateLocal() in Units_Sentence.cxx, at line 263, indicating that method aSeq->Value() is called with argument 0, while index variable i is shown equal to 1...
Debugger stops in static function CalculateLocal() in Units_Sentence.cxx, at line 263, indicating that method aSeq->Value() is called with argument 0, while index variable i is shown equal to 1...
Steps to reproduce
Draw[5]> unitconvtoSI 1 sq.km
An exception was caught 00803B10 : Standard_OutOfRange:
** Exception ** 00803B10 : Standard_OutOfRange:
An exception was caught 00803B10 : Standard_OutOfRange:
** Exception ** 00803B10 : Standard_OutOfRange:
Public activity
2 archived notes
Participants are labeled by their role within this record.
Branch [archived branch] has been created by Participant.
[revision removed]
Detailed log of new commits:
Author: mkv
Date: Tue Jul 25 16:48:43 2017 +0300
Test for 0023497: Units package raises exception for composite units
[revision removed]
Detailed log of new commits:
Author: mkv
Date: Tue Jul 25 16:48:43 2017 +0300
Test for 0023497: Units package raises exception for composite units
Dear BugMaster,
problem described in issue is reproduced on current state of OCCT.
problem described in issue is reproduced on current state of OCCT.