[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.
pull/423/head^2
Marek Habersack 5 years ago committed by Nick Black
parent c43006c2bf
commit 73b13e0fd5

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

Loading…
Cancel
Save