Fixed to reset selected value after clearing option array

pull/83/head
Hieromon Ikasamo 6 years ago committed by Hieromon Ikasamo
parent 45107226bf
commit 921c49e747
  1. 2
      src/AutoConnectElementBasisImpl.h

@ -172,6 +172,7 @@ void AutoConnectRadioBasis::empty(const size_t reserve) {
std::vector<String>().swap(_values); std::vector<String>().swap(_values);
if (reserve) if (reserve)
_values.reserve(reserve); _values.reserve(reserve);
checked = 0;
} }
/** /**
@ -221,6 +222,7 @@ void AutoConnectSelectBasis::empty(const size_t reserve) {
std::vector<String>().swap(_options); std::vector<String>().swap(_options);
if (reserve) if (reserve)
_options.reserve(reserve); _options.reserve(reserve);
selected = 0;
} }
/** /**

Loading…
Cancel
Save