diff --git a/PowerEditor/src/WinControls/ToolBar/ToolBar.cpp b/PowerEditor/src/WinControls/ToolBar/ToolBar.cpp index b1c86b850..74e08378c 100644 --- a/PowerEditor/src/WinControls/ToolBar/ToolBar.cpp +++ b/PowerEditor/src/WinControls/ToolBar/ToolBar.cpp @@ -380,7 +380,7 @@ void ToolBar::reset(bool create) void ToolBar::registerDynBtn(UINT messageID, toolbarIcons* tIcon) { // Note: Register of buttons only possible before init! - if ((_hSelf == NULL) && (messageID != 0) && (tIcon->hToolbarBmp != NULL) && (tIcon->hToolbarIcon != NULL)) + if ((_hSelf == NULL) && (messageID != 0) && (tIcon->hToolbarBmp != NULL)) { DynamicCmdIcoBmp dynList; dynList._message = messageID;