Merge pull request #512 from softmarch/issue-504-select-multiple-cells

Fixed multiple cell throw exception.
This commit is contained in:
Thomas Fussell 2021-01-02 15:05:09 -05:00 committed by GitHub
commit d913eec9f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -49,7 +49,15 @@ range_reference::range_reference(const char *range_string)
range_reference::range_reference(const std::string &range_string)
: top_left_("A1"), bottom_right_("A1")
{
auto colon_index = range_string.find(':');
auto colon_index = range_string.find(' ');
if (colon_index != std::string::npos)
{
// Multiple cell selection is not supported at this time.
return;
}
colon_index = range_string.find(':');
if (colon_index != std::string::npos)
{