Skip to content

Commit c9dc80c

Browse files
Merge branch 'develop' into qtnz2
2 parents 095a1c7 + 9e1e7d9 commit c9dc80c

File tree

3 files changed

+20
-4
lines changed

3 files changed

+20
-4
lines changed

cmake/package_deb.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ set(CPACK_COMPONENTS_ALL applications doc library share ${THIRDPARTY_COMPONENT_G
7474
## Autogeneration with SHLIBDEPS will add to this variable. For now we include most things statically and require the standard Qt package and libc6 only.
7575
## (only available in Ubuntu >=17.10). For older Ubuntu, dependencies can be installed from a thirdparty repo.
7676
set(CPACK_DEBIAN_PACKAGE_DEPENDS
77-
"libqt6svg6 (>= 6.2.2), libc6 (>= 2.28), libqt6widgets6t64 (>= 6.2.2) | libqt6widget6 (>= 6.2.2), libqt6gui6t64 (>= 6.2.2) | libqt6gui6 (>= 6.2.2), libqt6core6t64 (>= 6.2.2) | libqt6core6 (>= 6.2.2), libyaml-cpp0.7 | libyaml-cpp0.8")
77+
"libqt6svg6 (>= 6.2.2), libc6 (>= 2.28), libqt6widgets6t64 (>= 6.2.2) | libqt6widgets6 (>= 6.2.2), libqt6gui6t64 (>= 6.2.2) | libqt6gui6 (>= 6.2.2), libqt6core6t64 (>= 6.2.2) | libqt6core6 (>= 6.2.2), libyaml-cpp0.7 | libyaml-cpp0.8")
7878

7979
SET(CPACK_DEBIAN_PACKAGE_PRIORITY "optional")
8080
SET(CPACK_DEBIAN_PACKAGE_SECTION "science")

cmake/package_general.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ elseif(APPLE)
9999
set(POST_EXCLUDE "")
100100
else()
101101
set(PRE_EXCLUDE "")
102-
set(POST_EXCLUDE ".*/ld-linux-.*" ".*/linux-vdso.*" ".*/libm\\..*" ".*/libc\\..*" ".*/libpthread\\..*" ".*/libdl\\..*" ".*/libQt6.*")
102+
set(POST_EXCLUDE ".*/ld-linux-.*" ".*/linux-vdso.*" ".*/libm\\..*" ".*/libc\\..*" ".*/libpthread\\..*" ".*/libdl\\..*" ".*/libstdc\\+\\+\\..*" ".*/libgcc_s.*" ".*/libgomp\\..*" ".*/libQt6.*")
103103
endif()
104104

105105
# TODO check if we can reduce the permissions

src/openms_gui/source/VISUAL/LayerDataBase.cpp

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,12 +119,28 @@ namespace OpenMS
119119

120120
float LayerDataBase::getMinIntensity() const
121121
{
122-
return getRange().getMinIntensity();
122+
if (!getRange().RangeIntensity::isEmpty())
123+
{
124+
return getRange().getMinIntensity();
125+
}
126+
else
127+
{
128+
OPENMS_LOG_WARN << "No data in range to get min intensity from. Returning 0.0." << std::endl;
129+
return 0.0f;
130+
}
123131
}
124132

125133
float LayerDataBase::getMaxIntensity() const
126134
{
127-
return getRange().getMaxIntensity();
135+
if (!getRange().RangeIntensity::isEmpty())
136+
{
137+
return getRange().getMaxIntensity();
138+
}
139+
else
140+
{
141+
OPENMS_LOG_WARN << "No data in range to get max intensity from. Returning 0.0." << std::endl;
142+
return 0.0f;
143+
}
128144
}
129145

130146
LayerAnnotatorBase::LayerAnnotatorBase(const FileTypeList& supported_types, const String& file_dialog_text, QWidget* gui_lock) :

0 commit comments

Comments
 (0)