Skip to content

Commit

Permalink
Merge pull request seandepagnier#232 from did-g/osx_packager
Browse files Browse the repository at this point in the history
update OSX Packager to 1.2.4 version
  • Loading branch information
seandepagnier authored Oct 22, 2018
2 parents 7a239e8 + 20f8664 commit 1cfa586
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ install:
echo 'export PATH="/usr/local/opt/gettext/bin:$PATH"' >> ~/.bash_profile;
wget http://s.sudre.free.fr/Software/files/Packages.dmg;
hdiutil attach Packages.dmg;
sudo installer -pkg "/Volumes/Packages 1.2.3/Install Packages.pkg" -target "/";
sudo installer -pkg "/Volumes/Packages 1.2.4/Install Packages.pkg" -target "/";
fi

script:
Expand Down
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ ENDIF(NOT UNIX)
#ENDIF(NOT UNIX)

IF(MINGW)
TARGET_LINK_LIBRARIES(${PACKAGE_NAME} "-lwxzlib-2.8")
# TARGET_LINK_LIBRARIES(${PACKAGE_NAME} "-lwxzlib-2.8")
TARGET_LINK_LIBRARIES(${PACKAGE_NAME} "-lz")
ENDIF(MINGW)

INCLUDE("cmake/PluginJSON.cmake")
Expand Down
2 changes: 1 addition & 1 deletion cmake/PluginConfigure.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ ENDIF(QT_ANDROID)

IF(MSYS)
# this is just a hack. I think the bug is in FindwxWidgets.cmake
STRING( REGEX REPLACE "/usr/local" "\\\\;C:/MinGW/msys/1.0/usr/local" wxWidgets_INCLUDE_DIRS ${wxWidgets_INCLUDE_DIRS} )
STRING( REGEX REPLACE "/usr/local" "\\\\;C:/MinGW/msys/1.0/usr/local" wxWidgets_INCLUDE_DIRS "${wxWidgets_INCLUDE_DIRS}" )
ENDIF(MSYS)

# QT_ANDROID is a cross-build, so the native FIND_PACKAGE(OpenGL) is not useful.
Expand Down
9 changes: 7 additions & 2 deletions src/WeatherRouting.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ const wxString WeatherRouting::column_names[NUM_COLS] = {"Visible", "Boat", "Sta
static int sortcol, sortorder = 1;
// sort callback. Sort by body.
#if wxCHECK_VERSION(2, 9, 0)
int wxCALLBACK SortWeatherRoutes(long item1, long item2, wxIntPtr list)
int wxCALLBACK SortWeatherRoutes(wxIntPtr item1, wxIntPtr item2, wxIntPtr list)
#else
int wxCALLBACK SortWeatherRoutes(long item1, long item2, long list)
#endif
Expand Down Expand Up @@ -1037,8 +1037,13 @@ void WeatherRouting::OnWeatherRouteSort( wxListEvent& event )
UpdateItem(index);
}
RequestRefresh( GetParent() );
} else
} else {
#if wxCHECK_VERSION(2, 9, 0)
m_panel->m_lWeatherRoutes->SortItems(SortWeatherRoutes, (wxIntPtr)m_panel->m_lWeatherRoutes);
#else
m_panel->m_lWeatherRoutes->SortItems(SortWeatherRoutes, (long)m_panel->m_lWeatherRoutes);
#endif
}
}

void WeatherRouting::OnWeatherRouteSelected( )
Expand Down

0 comments on commit 1cfa586

Please sign in to comment.