mirror of
https://github.com/tfussell/xlnt.git
synced 2024-03-22 13:11:17 +08:00
Merge pull request #512 from softmarch/issue-504-select-multiple-cells
Fixed multiple cell throw exception.
This commit is contained in:
commit
d913eec9f4
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user