View Issue Details

IDProjectCategoryView StatusLast Update
0001410FreeCADBugpublic2014-02-14 16:39
Reportershoogen Assigned Towmayer  
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionfixed 
Product Versiontrunk 
Summary0001410: Base::Quantity::getValueAs does not properly check the dimension
Descriptionif the given Units is unsuitable the function should raise a ValueError instead of returning invalid values.
A unit is unsuitable if the dimension of the units do not match. The (derived) dimension of "Angle" should be ignored in this check.
Steps To Reproduce>>> FreeCAD.Units.Quantity('100km').getValueAs(FreeCAD.Units.Ampere)
1e+08
TagsNo tags attached.
FreeCAD Information

Activities

There are no notes attached to this issue.

Related Changesets

FreeCAD: master 3ce05cd4

2014-02-14 17:14:39

wmayer

Details Diff
+ fixes 0001410: Base::Quantity::getValueAs does not properly check the dimension Affected Issues
0001410
mod - src/Base/QuantityPy.xml Diff File
mod - src/Base/QuantityPyImp.cpp Diff File

Issue History

Date Modified Username Field Change
2014-02-12 17:20 shoogen New Issue
2014-02-14 16:39 wmayer Changeset attached => FreeCAD Master master 3ce05cd4
2014-02-14 16:39 wmayer Assigned To => wmayer
2014-02-14 16:39 wmayer Status new => closed
2014-02-14 16:39 wmayer Resolution open => fixed