modification date and unmodified note

User avatar
CintaNotes Developer
Site Admin
Posts: 5001
Joined: Fri Dec 12, 2008 4:45 pm
Contact:

Re: modification date and unmodified note

Postby CintaNotes Developer » Mon Jan 30, 2012 4:17 pm

Btw, what caused the bug, just out of curiousity?

Text formatting info saved in the DB and the same formatting collected from the
richedit control were slightly different (similar to "<b><a>link</a></b>" vs.
"<a><b>link</b></a>")and caused CN to think that the formatting has been changed :D
Alex
Thomas Lohrum
Posts: 1324
Joined: Tue Mar 08, 2011 11:15 am

Re: modification date and unmodified note

Postby Thomas Lohrum » Wed Feb 08, 2012 11:02 pm

There is one more issue with notes being saved, though opened and closed without making any changes, using the ESC key only. By analyzing the data, i can see that a "<pre></pre>" tag combination was added, causing the note to be saved.
User avatar
CintaNotes Developer
Site Admin
Posts: 5001
Joined: Fri Dec 12, 2008 4:45 pm
Contact:

Re: modification date and unmodified note

Postby CintaNotes Developer » Thu Feb 09, 2012 10:15 am

Thomas Lohrum wrote:There is one more issue with notes being saved, though opened and closed without making any changes, using the ESC key only. By analyzing the data, i can see that a "<pre></pre>" tag combination was added, causing the note to be saved.

Thanks, Thomas, I'll investigate the issue as soon as I can.
Alex
User avatar
CintaNotes Developer
Site Admin
Posts: 5001
Joined: Fri Dec 12, 2008 4:45 pm
Contact:

Re: modification date and unmodified note

Postby CintaNotes Developer » Fri Feb 10, 2012 12:06 pm

Thomas Lohrum wrote:There is one more issue with notes being saved, though opened and closed without making any changes, using the ESC key only. By analyzing the data, i can see that a "<pre></pre>" tag combination was added, causing the note to be saved.

Thanks to having your cintanotes.settings file, I have found the reason of the problem!
This happens because you have the same font for the note's text and for monospace formatting - namely, Courier New.
When CN is saving a note, it has other way to know where "monospace" formatting has been applied other than to look at the font. And when you press ESC, CN erroneously "detects" that you have applied the monospace formatting to the whole text!
This is also why that PRE tag is appearing in the XML.

The question is now, how to fix this. The easiest way would be to detect that the fonts are the same and just don't bother with monospace formatting in this case.
Alex
Thomas Lohrum
Posts: 1324
Joined: Tue Mar 08, 2011 11:15 am

Re: modification date and unmodified note

Postby Thomas Lohrum » Fri Feb 10, 2012 1:24 pm

As i always use monospace you're solution sounds reasonable. Let's fix it this way. :)
User avatar
CintaNotes Developer
Site Admin
Posts: 5001
Joined: Fri Dec 12, 2008 4:45 pm
Contact:

Re: modification date and unmodified note

Postby CintaNotes Developer » Sat Feb 11, 2012 2:17 am

Ok ready! Please try this version:
Attachments
CintaNotes_1_5_6p1.rar
(699.05 KiB) Downloaded 2212 times
Alex
Thomas Lohrum
Posts: 1324
Joined: Tue Mar 08, 2011 11:15 am

Re: modification date and unmodified note

Postby Thomas Lohrum » Sun Feb 12, 2012 8:03 am

I created a test note. Tested with the old (buggy) version. Tested with the new version. I confirm the bug is gone :)

Thomas
User avatar
CintaNotes Developer
Site Admin
Posts: 5001
Joined: Fri Dec 12, 2008 4:45 pm
Contact:

Re: modification date and unmodified note

Postby CintaNotes Developer » Mon Feb 13, 2012 4:31 am

Great!
Alex

Return to “Bug Reports”