call debugger when encountering nested BeginLineArray calls like in R5

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16244 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus
2006-02-06 10:24:12 +00:00
parent b2f9d1906b
commit 585c5a0042
+4
View File
@@ -2941,6 +2941,10 @@ BView::BeginLineArray(int32 count)
check_lock_no_pick();
if (comm) {
debugger("Can't nest BeginLineArray calls");
// not fatal, but it helps during
// development of your app and is in
// line with R5...
delete [] comm->array;
delete comm;
}