Skip to content

Commit

Permalink
JPEGView v1.0.39.1 - fix for bug reported #39 thanks for the report h…
Browse files Browse the repository at this point in the history
…ttps://github.com/vvyoko

shifted menu items positions so submenus show properly, after adding the new menu item in v1.0.39
  • Loading branch information
sylikc committed Feb 11, 2022
1 parent 5c121b5 commit ca5bd03
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 12 deletions.
1 change: 1 addition & 0 deletions JPEGView/MainDlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1165,6 +1165,7 @@ LRESULT CMainDlg::OnContextMenu(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM lParam,
if (m_pCurrentImage == NULL) {
::EnableMenuItem(hMenuTrackPopup, IDM_SAVE, MF_BYCOMMAND | MF_GRAYED);
::EnableMenuItem(hMenuTrackPopup, IDM_RELOAD, MF_BYCOMMAND | MF_GRAYED);
//::EnableMenuItem(hMenuTrackPopup, IDM_EXPLORE, MF_BYCOMMAND | MF_GRAYED); // can still show path to an image which could not be loaded. If file doesn't exist, nothing happens anyways
::EnableMenuItem(hMenuTrackPopup, IDM_PRINT, MF_BYCOMMAND | MF_GRAYED);
::EnableMenuItem(hMenuTrackPopup, IDM_COPY, MF_BYCOMMAND | MF_GRAYED);
::EnableMenuItem(hMenuTrackPopup, IDM_COPY_FULL, MF_BYCOMMAND | MF_GRAYED);
Expand Down
24 changes: 12 additions & 12 deletions JPEGView/resource.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// Used by JPEGView.RC
//

#define JPEGVIEW_VERSION "1, 0, 39, 0\0"
#define JPEGVIEW_VERSION "1, 0, 39, 1\0"


#define IDD_ABOUTBOX 100
Expand Down Expand Up @@ -304,17 +304,17 @@
// in the main menu
// these position must be changed if menu items are inserted
#define SUBMENU_POS_OPENWITH 3
#define SUBMENU_POS_MODDATE 8
#define SUBMENU_POS_WALLPAPER 9
#define SUBMENU_POS_NAVIGATION 21
#define SUBMENU_POS_DISPLAY_ORDER 22
#define SUBMENU_POS_MOVIE 23
#define SUBMENU_POS_TRANSFORM 25
#define SUBMENU_POS_TRANSFORM_LOSSLESS 26
#define SUBMENU_POS_ZOOM 34
#define SUBMENU_POS_AUTOZOOMMODE 35
#define SUBMENU_POS_SETTINGS 37
#define SUBMENU_POS_USER_COMMANDS 39
#define SUBMENU_POS_MODDATE 9
#define SUBMENU_POS_WALLPAPER 10
#define SUBMENU_POS_NAVIGATION 22
#define SUBMENU_POS_DISPLAY_ORDER 23
#define SUBMENU_POS_MOVIE 24
#define SUBMENU_POS_TRANSFORM 26
#define SUBMENU_POS_TRANSFORM_LOSSLESS 27
#define SUBMENU_POS_ZOOM 35
#define SUBMENU_POS_AUTOZOOMMODE 36
#define SUBMENU_POS_SETTINGS 38
#define SUBMENU_POS_USER_COMMANDS 40

// in the crop menu
#define SUBMENU_POS_CROPMODE 3
Expand Down
4 changes: 4 additions & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ Windows XP SP2 or later is needed to run the 32 bit version.

Changelog
*********
[1.0.39.1]
Bugs fixed:
- Fixed bug introduced in 1.0.39 which caused other menu items in the popup to disappear

[1.0.39]
New features:
- Add new command "Open containing folder in Explorer"
Expand Down

0 comments on commit ca5bd03

Please sign in to comment.