From 18a0074a1537734cfe3981df042ecd12f7527a43 Mon Sep 17 00:00:00 2001 From: vsv Date: Thu, 22 Dec 2016 16:21:55 +0300 Subject: [PATCH] Fix formatting --- src/SketcherPrs/SketcherPrs_SymbolPrs.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/SketcherPrs/SketcherPrs_SymbolPrs.cpp b/src/SketcherPrs/SketcherPrs_SymbolPrs.cpp index 37841f4b1..bc3f6090b 100644 --- a/src/SketcherPrs/SketcherPrs_SymbolPrs.cpp +++ b/src/SketcherPrs/SketcherPrs_SymbolPrs.cpp @@ -50,9 +50,9 @@ static const double MyDist = 0.02; class SketcherPrs_SymbolArray: public OpenGl_PrimitiveArray { public: - SketcherPrs_SymbolArray(const OpenGl_GraphicDriver* theDriver, - const Handle(SketcherPrs_SymbolPrs)& theObj) - :OpenGl_PrimitiveArray(theDriver, theObj->myPntArray->Type(), theObj->myPntArray->Indices(), + SketcherPrs_SymbolArray(const OpenGl_GraphicDriver* theDriver, + const Handle(SketcherPrs_SymbolPrs)& theObj) + :OpenGl_PrimitiveArray(theDriver, theObj->myPntArray->Type(), theObj->myPntArray->Indices(), theObj->myPntArray->Attributes(), theObj->myPntArray->Bounds()), myObj(theObj) {} virtual void Render(const Handle(OpenGl_Workspace)& theWorkspace) const @@ -221,7 +221,7 @@ void SketcherPrs_SymbolPrs::Compute( Handle(AIS_InteractiveContext) aCtx = GetContext(); Handle(OpenGl_GraphicDriver) aDriver = Handle(OpenGl_GraphicDriver)::DownCast(aCtx->CurrentViewer()->Driver()); - if (aDriver.IsNull()) + if (aDriver.IsNull()) return; // Update points with default shift value @@ -255,7 +255,7 @@ void SketcherPrs_SymbolPrs::Compute( } // Pint the group with custom procedure (see Render) - SketcherPrs_SymbolArray* aElem = + SketcherPrs_SymbolArray* aElem = new SketcherPrs_SymbolArray((OpenGl_GraphicDriver*)aDriver->This(), this); aGroup->AddElement(aElem); -- 2.39.2