summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
Diffstat (limited to 'extensions')
-rw-r--r--extensions/source/propctrlr/propcontroller.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/source/propctrlr/propcontroller.cxx b/extensions/source/propctrlr/propcontroller.cxx
index 624bf03d16b6..b0516fd90903 100644
--- a/extensions/source/propctrlr/propcontroller.cxx
+++ b/extensions/source/propctrlr/propcontroller.cxx
@@ -956,7 +956,7 @@ namespace pcr
}
// append these properties to our "all properties" array
- aProperties.reserve( aProperties.size() + aThisHandlersProperties.size() );
+ aProperties.reserve( std::max<size_t>(aProperties.size() + aThisHandlersProperties.size(), aProperties.size() * 2) );
for (const auto & aThisHandlersProperty : aThisHandlersProperties)
{
auto noPrevious = std::none_of(