Release 2023.06

This commit is contained in:
Magne Sjaastad
2023-06-19 13:48:44 +02:00
committed by GitHub
parent a7108f0a09
commit 77bf792b1a
1390 changed files with 66974 additions and 11511 deletions

View File

@@ -1,7 +1,5 @@
project(ResultStatisticsCache)
include_directories(${LibCore_SOURCE_DIR})
add_library(
${PROJECT_NAME}
RigStatisticsCalculator.h RigStatisticsCalculator.cpp
@@ -11,6 +9,6 @@ add_library(
target_include_directories(${PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
target_link_libraries(${PROJECT_NAME} LibCore)
target_link_libraries(${PROJECT_NAME} LibCore ApplicationLibCode)
source_group("" FILES ${PROJECT_FILES})

View File

@@ -293,7 +293,7 @@ void RigHistogramCalculator::addValue( double value )
size_t index = 0;
if ( m_maxIndex > 0 ) index = ( size_t )( m_maxIndex * ( value - m_min ) / m_range );
if ( m_maxIndex > 0 ) index = (size_t)( m_maxIndex * ( value - m_min ) / m_range );
if ( index < m_histogram->size() ) // Just clip to the max min range (-index will overflow to positive )
{