>I think we should go restore RAII style rendering pen.
Well, I've found it - this issue actually not related to rendering, it's related to earlier incorrect calculation of bounding rect (minV, MaxV for polylin) after editing operation. So polyline becomes outside of the screen bounding box). I'll apply a fix
add a PDF? Hmm... how and where? Could you please expand on this?
UPD: Oh, noticed this in your video. I suppose we should apply more strict to image format. PDF is definitely is not something correct that is expected there, AFIK pdf is not supported at all ...
A pdf is not an image file. Primarily it is a vector format, it may contain an image additionally. But it can not be imported into LibreCAD, it's also not in the list of possible image formats to be imported.