From 73b13e0fd50385c352cd7d96deae12fea4f46514 Mon Sep 17 00:00:00 2001 From: Marek Habersack Date: Sat, 21 Mar 2020 22:39:11 +0100 Subject: [PATCH] [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. --- include/ncpp/Plane.hh | 1 - 1 file changed, 1 deletion(-) diff --git a/include/ncpp/Plane.hh b/include/ncpp/Plane.hh index ac053fda0..a88891030 100644 --- a/include/ncpp/Plane.hh +++ b/include/ncpp/Plane.hh @@ -985,7 +985,6 @@ namespace ncpp if (ret == nullptr) throw init_error ("notcurses failed to duplicate plane"); - is_stdplane = other.is_stdplane; return ret; }