diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2017-07-07 20:34:28 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2017-07-07 20:34:28 +0000 |
| commit | 7542e8cb168efcdcfaa9190b9858c75055999bc1 (patch) | |
| tree | 1c85a3871a2a57759f6bf89b64272350d40f18e0 /src/Fl_Preferences.cxx | |
| parent | d9460d787b5539feef0977446add1821ac75d921 (diff) | |
STR #2823.1/2: avoiding setting "dirty" flag in a read operation.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12304 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Preferences.cxx')
| -rw-r--r-- | src/Fl_Preferences.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Fl_Preferences.cxx b/src/Fl_Preferences.cxx index 77683c597..f7f2834ec 100644 --- a/src/Fl_Preferences.cxx +++ b/src/Fl_Preferences.cxx @@ -1165,7 +1165,8 @@ void Fl_Preferences::Node::set( const char *line ) { dirty_ = dirt; } -// add more data to an existing entry +// Append data to an existing node. This is only used in read operations when +// a single entry stretches over multiple lines in the prefs file. void Fl_Preferences::Node::add( const char *line ) { if ( lastEntrySet<0 || lastEntrySet>=nEntry_ ) return; char *&dst = entry_[ lastEntrySet ].value; @@ -1173,7 +1174,6 @@ void Fl_Preferences::Node::add( const char *line ) { size_t b = strlen( line ); dst = (char*)realloc( dst, a+b+1 ); memcpy( dst+a, line, b+1 ); - dirty_ = 1; } // get the value for a name, returns 0 if no such name |
