User forums > Using Code::Blocks

Syntax Highlighting bug

<< < (2/2)

Pecan:

--- Quote from: Pecan on April 11, 2006, 06:10:55 pm ---
It seems that in default.conf, only the current changes are being recorded.

--- End quote ---

Here's a proposed fix for this problem. It seems editorcolorset.cpp::save() was deleting the previous user settings
before writing the new user setting.

I'll submit a bug patch to berlios.
 

--- Code: ---Index: src/sdk/editorcolorset.cpp
===================================================================
--- src/sdk/editorcolorset.cpp (revision 2337)
+++ src/sdk/editorcolorset.cpp (working copy)
@@ -466,7 +466,8 @@
 {
  wxString key;
  ConfigManager* cfg = Manager::Get()->GetConfigManager(_T("editor"));
- cfg->DeleteSubPath(_T("/color_sets/") + m_Name);
+ // The next stmt causes all previous user settings to be deleted        //pecan 2006/4/11
+ //-cfg->DeleteSubPath(_T("/color_sets/") + m_Name);                     //pecan 2006/4/11
 
  // write the theme name
  cfg->Write(_T("/color_sets/") + m_Name + _T("/name"), m_Name);

--- End code ---

thanks
pecan

Navigation

[0] Message Index

[*] Previous page

Go to full version