0028714: Dimension of TDataStd_Real is not serialized to document
[occt.git] / src / StdLPersistent / StdLPersistent_Real.hxx
index 409051e..4b6dfe6 100644 (file)
@@ -37,9 +37,11 @@ public:
   //! Import transient attribuite from the persistent data.
   void Import (const Handle(TDataStd_Real)& theAttribute) const
   {
-    theAttribute->Set          (myValue);
+    theAttribute->Set (myValue);
+    Standard_DISABLE_DEPRECATION_WARNINGS
     theAttribute->SetDimension (static_cast<TDataStd_RealEnum> (myDimension));
-    theAttribute->SetID(TDataStd_Real::GetID());
+    Standard_ENABLE_DEPRECATION_WARNINGS
+    theAttribute->SetID (TDataStd_Real::GetID());
   }
 
 private: