X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/664e5ff93e8ed74969e67c79ce9da004309ca91c..0dd9646ea8b9e6f3a5fa8c42b6a4954cf8e3a48d:/include/wx/vector.h diff --git a/include/wx/vector.h b/include/wx/vector.h index cf8e69c6e4..056202bcaa 100644 --- a/include/wx/vector.h +++ b/include/wx/vector.h @@ -180,7 +180,7 @@ public: wxVector(size_type size, const value_type& v) : m_size(0), m_capacity(0), m_values(NULL) { - reserve(n); + reserve(size); for ( size_t n = 0; n < size; n++ ) push_back(v); }