DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Link: http://www.fltk.org/str.php?L1957
Version: 2.0-current


looks like buffer_modified_cb requires deleted text as a parameter, but
this is not passed through from TextDisplay::buffer( TextBuffer *buf )

this fixed it for me

--- TextDisplay.cxx.orig        2008-05-04 16:48:19.000000000 +0100
+++ TextDisplay.cxx     2008-05-04 16:48:54.000000000 +0100
@@ -190,7 +190,7 @@
     own_buffer = 0;
     buffer_ = 0;
   } else if (buffer_ != 0) {
-    buffer_modified_cb(0, 0, buffer_->length(), 0, 0, this);
+    buffer_modified_cb(0, 0, buffer_->length(), 0, buffer_->text(),
this);
     buffer_->remove_modify_callback(buffer_modified_cb, this);
     buffer_->remove_predelete_callback(buffer_predelete_cb, this);
   }


Link: http://www.fltk.org/str.php?L1957
Version: 2.0-current

_______________________________________________
fltk-bugs mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-bugs

Reply via email to