# HG changeset patch # User Alain Mazy # Date 1781082308 -7200 # Node ID fe54bdb94d40f99ba47388a90a9311e104edcb89 # Parent ae404101b2ae5cfd91cf987358e1417dc9e186d5 Fix EstimateValueSize always estimating 0 diff -r ae404101b2ae -r fe54bdb94d40 OrthancFramework/Sources/DataSource/StorageAreaDataSource.cpp --- a/OrthancFramework/Sources/DataSource/StorageAreaDataSource.cpp Tue Jun 09 09:53:51 2026 +0200 +++ b/OrthancFramework/Sources/DataSource/StorageAreaDataSource.cpp Wed Jun 10 11:05:08 2026 +0200 @@ -221,7 +221,8 @@ virtual bool EstimateValueSize(size_t& target) const ORTHANC_OVERRIDE { assert(start_ <= end_); - return end_ - start_; + target = end_ - start_; + return target > 0; } void SetPostProcessing(IPostProcessing* postProcessing)