hshgit / flexpaper

Automatically exported from code.google.com/p/flexpaper
0 stars 0 forks source link

onMarkCreated() called twice when adding a note using the new note sub-menu item. #409

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1.Choose a Note type of annotation and then choose any sub-menu item (area, 
text, point).
2. Draw a note.

What is the expected output? What do you see instead?

It is expected that only a single "onMarkCreated()" call is made.  Instead, two 
calls are made.  This wreaks havoc on saving note annotations because you end 
up with either duplicate annotations or constraint violations (if you are using 
GUID as a unique constraint) in your DB.

Only a single "onMarkCreated()" event handler should be called.

What version of the product are you using? On what operating system?

2.2.9c_AdaptiveUI_Customizeable.  Windows client and RHEL 6.6 server.

Please provide any additional information below.

I have a commercial unlimited license.  (Red Oak Compliance Solutions).

Original issue reported on code.google.com by rgras...@gmail.com on 21 Oct 2014 at 11:30