Skip to content

Commit

Permalink
#325 Fix highlighting color setting option not saved
Browse files Browse the repository at this point in the history
  • Loading branch information
cbucher committed Mar 3, 2016
1 parent bd35203 commit 31b355b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion Console/DlgSettingsAppearance.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ class DlgSettingsAppearance
// LRESULT NotifyHandler(int /*idCtrl*/, LPNMHDR /*pnmh*/, BOOL& /*bHandled*/)

LRESULT OnInitDialog(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/);
LRESULT OnHScroll(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM lParam, BOOL& /*bHandled*/);

LRESULT OnCloseCmd(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCtl*/, BOOL& /*bHandled*/);
LRESULT OnClickedBtnBrowseIcon(WORD /*wNotifyCode*/, WORD /*wID*/, HWND /*hWndCtl*/, BOOL& /*bHandled*/);
Expand Down
2 changes: 1 addition & 1 deletion Console/SettingsHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,7 @@ bool StylesSettings::Save(const CComPtr<IXMLDOMElement>& pSettingsRoot)
XmlHelper::SetRGBAttribute(pSelColorElement, crSelectionColor);

CComPtr<IXMLDOMElement> pHiColorElement;
if (SUCCEEDED(XmlHelper::GetDomElement(pStylesElement, CComBSTR(L"highlight_color"), pHiColorElement)))
if (SUCCEEDED(XmlHelper::AddDomElementIfNotExist(pStylesElement, CComBSTR(L"highlight_color"), pHiColorElement)))
XmlHelper::SetRGBAttribute(pHiColorElement, crHighlightColor);

return true;
Expand Down

0 comments on commit 31b355b

Please sign in to comment.