tomfrascone / diy-layout-creator

Automatically exported from code.google.com/p/diy-layout-creator
0 stars 0 forks source link

Snap still on when unticked on multiple object selection. #217

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi, I recently upgraded from diylc-3.24.0a where the problem does not occur to 
diylc-3.26.0 where I am now getting the problem, I retested everything below in 
the original version I still have and the problem does NOT exist.

Initial files attached :
log-Mon Apr29 17.37.30 BST 2013.log
snap2grid.png

I am now going to close the program, reopen it, reload and do below the steps I 
did that initially created the issue. I will then report the findings.

I have opened the program and before loading tested it on a blank canvas and 
have discovered a fault I will explain this much further below which is MUCH 
easier to understand then the text immediately below, so you have two case 
studies.

Here is the initial problem that drew it to my attention.

What steps will reproduce the problem?
1. I had opened a file to edit as realised I needed two relay circuits instead 
of just the one.
2. I had locked BOARD.
3. I selected the remaining items manually (this consisted of one relay and a 
few components (I hope to attach this initial file).
4. I did CTRL+C to copy.
5. I did CTRL+V to paste.
6. As expected it provided a movable (attached to cursor) copy.
7. I then left clicked to place it in a new are to the right.
8. I GROUPED by using the menu command the selected items (this being the now 
right relay and a few components in the paste).
9. As expected it it didn't line up with the BOARD.
10. I left clicked and hold on a pin as in the past this helped alignment.
    It failed to help in this case
11. I turned OFF the SNAP (so it was unticked) using the menu.
12. I repeated step 10.
13. At this point I discovered SNAP although unticked was still active as it 
moved in 'jumps' rather then in small pixel steps.
14. I checked the SNAP (as you can see from screen shot, it shows inactive.
15. I UNGROUPED the pasted item and repeated step 10, the result was still a 
jump rather then a pixel step.
16. 

I have examined the LOG file and see that it says "Snap to grid triggered"
I noticed in the log it updated the config file, so I examined that.

(in between these steps I am closing the log and config files down)

I noted that when SNAP ticked it showed <string>snapToGrid</string>
    <boolean>true</boolean> and the action was correct in the program, it 'jumped'
I then set the SNAP to unticked and the config file showed 
<string>snapToGrid</string>
    <boolean>false</boolean>, but the action I got from the program was that it was still active, it still jumped.

I am otherwise using Vista Home, 32bit, on a HP laptop... nothing amazing.

HERE IS WHAT HAPPENED WHEN I RESTARTED THE PROGRAM...

You will need the attached files
log-Mon Apr 29 19.14.08 BST 2013.log
Snap2Grid.zip
config.xml

Snap to grid contains a compressed AVI video of what I did, the last few 
seconds are the most explanitory as they show with snap OFF, how selecting a 
single item can be moved with pixel distance, whilst selecting two (or more) 
objects seems to turn the SNAP back on. I have moused over the menu bar to show 
SNAP was indeed off.

1. I opened the program.
2. Checked SNAP was ticked.
3. Drew a few pads.
   The result was the pads acted as a grid and 'jumped'. This was correct.
4. I then unticked SNAP.
5. I draw a few pads.
   The result was the pads acted as a step by step pixel. This was correct.
6. I then manually selected all the pads.
7. Left clicked into one of the pads to move them and they 'jumped'. This was 
INCORRECT...

Sincerely,
John...

Original issue reported on code.google.com by maffys...@gmail.com on 29 Apr 2013 at 6:33

Attachments:

GoogleCodeExporter commented 8 years ago
Wow. Thanks for the most thorough explanation. I fixed and will release in 3.27

Cheers,
Banr

Original comment by bancika@gmail.com on 29 Apr 2013 at 7:10

GoogleCodeExporter commented 8 years ago
WOW! Super fast fix! I only reported it a few hours ago!
You are truly a SUPER GENIUS!
Glad the explanation helped!
I'm switching between 3.24 and 3.26, it's so funny!
Many Thanks!

Original comment by maffys...@gmail.com on 29 Apr 2013 at 8:58