diff dwtestoo.cpp @ 2920:c6b699a441fe

C++: Fix a couple minor errors while attempting to fix Mac crash.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Wed, 28 Dec 2022 21:13:04 +0000
parents e609aa6a5b93
children 235fef840df2
line wrap: on
line diff
--- a/dwtestoo.cpp	Wed Dec 28 11:23:51 2022 +0000
+++ b/dwtestoo.cpp	Wed Dec 28 21:13:04 2022 +0000
@@ -208,7 +208,7 @@
                 if(!hpm)
                 {
                     snprintf(buf, 15, "%6.6d", i+row);
-                    pixmap->DrawText(0, y, buf);
+                    pixmap1->DrawText(0, y, buf);
                 }
                 pLine = lp[i+row];
                 pixmap->DrawText(0, y, pLine+col);
@@ -948,7 +948,7 @@
         // Create Notebook Page 2 - Render
         notebookbox = new DW::Box(DW_VERT, 5);
         CreateRender(notebookbox);
-        notebookpage = notebook->PageNew(0, TRUE);
+        notebookpage = notebook->PageNew();
         notebook->Pack(notebookpage, notebookbox);
         notebook->PageSetText(notebookpage, "render");