Menu

#485 Displaying imported png image prevents snaping to intersections

Next release
open-fixed
None
5
2014-11-13
2014-11-11
Jan Höcker
No

Observed on Kubuntu / Lubunt 14.04. Tried LibreCAD 2.0.2, 2.0.4 and daily builds from ppa:
1. Import image
2. Create second layer
3. Draw circles on second layer
4. Snapping to circle center is not working when drawing lines between circle centers.
5. Make layer with drawing invisible: Snapping works.

Seems to be exactly the same as described in ticket #426.

Discussion

  • Dongxu Li

    Dongxu Li - 2014-11-12

    it was actually implemented as a feature to ignore snap2center within an image.

    I couldn't figure out the rationale of doing so. therefore, decided to fix this bug by enabling snap2center within an image rectangle.

    fixed in commit:

    https://github.com/LibreCAD/LibreCAD/commit/a2d288ce48a51008f43ffb89a079da7210fcc1bb

     

    Last edit: Dongxu Li 2014-11-12
  • Dongxu Li

    Dongxu Li - 2014-11-12
    • status: open --> open-fixed
    • assigned_to: Dongxu Li
     
  • Jan Höcker

    Jan Höcker - 2014-11-12

    Thanks for the fast reply. I'll try daily builds as soon as it is available. This will make live much easier for me.

     
  • Dongxu Li

    Dongxu Li - 2014-11-13

    There's a similar issue for "Snap on entities": can not snap on entities within an overlapped image.

    RS_Image::getNearestPointOnEntity(coord) has to return coord, if coord is within the image rect, to be able to click to select images within the image rect.

    The current workaround is to hide image to snap on overlapped entities.

     

Log in to post a comment.