Login  Register

Re: RS_Painter::toGui crashes

Posted by sand1024 on Mar 18, 2025; 6:21pm
URL: https://forum.librecad.org/RS-Painter-toGui-crashes-tp5726734p5726735.html

yes, that's a bit interim update and work in progress so far.
You can just comment the code assert.

As a temporary solution, you add the following code at the end of the method to ensure your local version is operational:

//    {
        double uiX=0., uiY=0.;
        const_cast<RS_Painter*>(this)->toGui(worldCoordinates, uiX, uiY);
//        using namespace RS_Math;
//        assert(equal(uiX, uiPosition.x) && equal(uiY, uiPosition.y));
//    }
    return {uiX, uiY};
//    return uiPosition;