arielmol / dviz

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

Windos - Svn r13 - Text doesnt sync back to model #4

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Steps:
1. Start dviz
2. Edit text in item on screen 
3. Close dviz

Expected:
"Text Item: Text: <!DOCTYPE HTML ...."

Instead:
"Text Item: Hello, World!"

This seems to only affect windows, not linux builds. Will try to troubleshoot.

Original issue reported on code.google.com by josiahbryan@gmail.com on 9 Sep 2009 at 2:38

GoogleCodeExporter commented 8 years ago
Fixed, but introduced another bug wherein its not syncing the position or 
contents
rect (but rotation angle *is* syncing. Wierd.) Fixed in svn r15, but bug is 
also in
r15. Will troubleshoot more.

Original comment by josiahbryan@gmail.com on 9 Sep 2009 at 3:13

GoogleCodeExporter commented 8 years ago
Fixed that bug - it had to do with the syncToModelItem being called during the
construction phase of the TextContent. So I added a lock variable 
(m_dontSyncToModel)
to AbstractContent.h and AbstractContent's impl of syncToModelItem will stop 
the sync
if that variable is true. Updated TextContent to set that variable during it's
syncFromModelItem() as well.

Original comment by josiahbryan@gmail.com on 9 Sep 2009 at 3:40