[C++] There can be only one stdplane

Fixes: https://github.com/dankamongmen/notcurses/issues/409

Standard planes can be duplicated but the copy must not be treated as a
standard plane. There can be only one :)

Make it so.
This commit is contained in:
Marek Habersack 2020-03-21 22:39:11 +01:00 committed by Nick Black
parent c43006c2bf
commit 73b13e0fd5

View File

@ -985,7 +985,6 @@ namespace ncpp
if (ret == nullptr)
throw init_error ("notcurses failed to duplicate plane");
is_stdplane = other.is_stdplane;
return ret;
}