1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-03 17:56:21 +03:00

0023346: MSVC++ Error C2664: 'AIS_InteractiveObject::PolygonOffsets': conversion from 'Standard_Real' in 'Standard_ShortReal &'

Changed Standard_Real to Standard_ShortReal.

Modify test case offset shape_type_i D6
This commit is contained in:
Pawel Kowalski 2012-07-27 16:52:37 +04:00
parent fb8a73581a
commit e145d04c8d
3 changed files with 12 additions and 11 deletions

View File

@ -187,12 +187,12 @@ void COffsetDlg::SetOffsets(Standard_Real theFactor, Standard_Real theUnits)
void COffsetDlg::UpdateValues()
{
Standard_Integer aOffsetMode;
Standard_Real aBoxFactor = 0;
Standard_Real aCylFactor = 0;
Standard_Real aSphereFactor = 0;
Standard_Real aCylUnits = 0;
Standard_Real aSphereUnits = 0;
Standard_Real aBoxUnits = 0;
Standard_ShortReal aBoxFactor = 0;
Standard_ShortReal aCylFactor = 0;
Standard_ShortReal aSphereFactor = 0;
Standard_ShortReal aCylUnits = 0;
Standard_ShortReal aSphereUnits = 0;
Standard_ShortReal aBoxUnits = 0;
Handle(AIS_InteractiveContext) aAISContext = myDoc->GetAISContext();

View File

@ -348,10 +348,10 @@ void CViewer3dDoc::OnPolygonOffsets()
void CViewer3dDoc::OnUpdatePolygonOffsets(CCmdUI* pCmdUI)
{
Standard_Integer aOffsetMode;
Standard_Real aFactor;
Standard_Real aCylUnits = 0;
Standard_Real aSphereUnits = 0;
Standard_Real aBoxUnits = 0;
Standard_ShortReal aFactor;
Standard_ShortReal aCylUnits = 0;
Standard_ShortReal aSphereUnits = 0;
Standard_ShortReal aBoxUnits = 0;
BOOL IsOverlappedCylinderDisplayed = myAISContext->IsDisplayed(myOverlappedCylinder);
BOOL IsOverlappedSphereDisplayed = myAISContext->IsDisplayed(myOverlappedSphere);

View File

@ -1,4 +1,5 @@
puts "TODO OCC23068 Mandriva2010: Error: bsection of result and s is not equal zero"
puts "TODO ?OCC23068 Mandriva2010: Error: bsection of result and s is not equal zero"
puts "TODO ?OCC23068 Mandriva2010: Faulty shapes in variables faulty_1 to faulty_2"
puts "TODO OCC23068 Mandriva2010: Error : The volume of result shape"
ellipse w1 0 0 0 15 10