diff --git a/librecad/src/lib/engine/rs_entity.cpp b/librecad/src/lib/engine/rs_entity.cpp index 0ae7865b42..38dd40a7c1 100644 --- a/librecad/src/lib/engine/rs_entity.cpp +++ b/librecad/src/lib/engine/rs_entity.cpp @@ -1017,8 +1017,7 @@ bool RS_Entity::isConstruction(bool typeCheck) const{ if (isHatchMember(this)) return false; - if (layer) return layer->isConstruction(); - return false; + return (layer != nullptr) && layer->isConstruction(); } //! whether printing is enabled or disabled for the entity's layer diff --git a/scripts/postprocess-windows/nsis-5.4.nsi b/scripts/postprocess-windows/nsis-5.4.nsi index 3ef2f77a4e..02b4cccd1f 100644 --- a/scripts/postprocess-windows/nsis-5.4.nsi +++ b/scripts/postprocess-windows/nsis-5.4.nsi @@ -9,7 +9,7 @@ ;Include version information !include /NONFATAL "generated_scmrev.nsh" !ifndef SCMREVISION - !define SCMREVISION "2.2.x" + !define SCMREVISION "2.2.2.x" !endif ;-------------------------------- @@ -107,7 +107,7 @@ FunctionEnd !define Mingw_Ver "mingw_64" !endif ;--- folder contains mingw64-make.exe -!define MINGW_DIR "${Qt6_Dir}\Tools\${Mingw_Ver}\bin" +!define MINGW_DIR "C:\mingw64\bin" !define QTCREATOR_DIR "${Qt6_Dir}\Tools\QtCreator\bin" !define QTMINGW_DIR "${Qt6_Dir}\${Qt_Version}\${Mingw_Ver}" ;--- folder contains qmake.exe @@ -144,7 +144,7 @@ Section "Install Section" SecInstall WriteRegStr HKLM "${UNINSTKEY}" "DisplayIcon" "$INSTDIR\LibreCAD.exe" WriteRegStr HKLM "${UNINSTKEY}" "DisplayVersion" "${SCMREVISION}" WriteRegStr HKLM "${UNINSTKEY}" "Publisher" "LibreCAD Team" - WriteRegStr HKLM "${UNINSTKEY}" "Version" "2.2" + WriteRegStr HKLM "${UNINSTKEY}" "Version" "2.2.2_rc1" WriteRegStr HKLM "${UNINSTKEY}" "HelpLink" "https://librecad.org/" WriteRegStr HKLM "${UNINSTKEY}" "InstallLocation" "$INSTDIR" WriteRegStr HKLM "${UNINSTKEY}" "URLInfoAbout" "http://librecad.org/"