diff --git a/src/Draw/TKDraw/Draw/Draw_Interpretor.cxx b/src/Draw/TKDraw/Draw/Draw_Interpretor.cxx index b27afe7ff4..627f2fc8ac 100644 --- a/src/Draw/TKDraw/Draw/Draw_Interpretor.cxx +++ b/src/Draw/TKDraw/Draw/Draw_Interpretor.cxx @@ -424,6 +424,16 @@ Draw_Interpretor& Draw_Interpretor::Append(const int i) //================================================================================================= +Draw_Interpretor& Draw_Interpretor::Append(const size_t theResult) +{ + char c[100]; + Sprintf(c, "%zu", theResult); + Tcl_AppendResult(myInterp, c, (const char*)nullptr); + return *this; +} + +//================================================================================================= + Draw_Interpretor& Draw_Interpretor::Append(const double r) { char s[100]; diff --git a/src/Draw/TKDraw/Draw/Draw_Interpretor.hxx b/src/Draw/TKDraw/Draw/Draw_Interpretor.hxx index b396f4fbb0..5e1d0fff45 100644 --- a/src/Draw/TKDraw/Draw/Draw_Interpretor.hxx +++ b/src/Draw/TKDraw/Draw/Draw_Interpretor.hxx @@ -185,6 +185,11 @@ public: inline Draw_Interpretor& operator<<(const int theResult) { return Append(theResult); } + //! Appends to the result + Standard_EXPORT Draw_Interpretor& Append(const size_t theResult); + + inline Draw_Interpretor& operator<<(const size_t theResult) { return Append(theResult); } + //! Appends to the result Standard_EXPORT Draw_Interpretor& Append(const double theResult);