FLTK logo

STR #1957

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 Home  |  Articles & FAQs  |  Bugs & Features  |  Documentation  |  Download  |  Screenshots  ]
 

Return to Bugs & Features | Roadmap 2.0 | Post Text | Post File | SVN ⇄ GIT ]

STR #1957

Application:FLTK Library
Status:5 - New
Priority:2 - Low, e.g. a documentation error or undocumented side-effect
Scope:3 - Applies to all machines and operating systems
Subsystem:Unassigned
Summary:TextDisplay incorrectly displays after buffer change
Version:2.0-current
Created By:seashley
Assigned To:Unassigned
Fix Version:Unassigned
Update Notification:

Receive EMails Don't Receive EMails

Trouble Report Files:

Post File ]

No files


Trouble Report Comments:

Post Text ]
Name/Time/Date Text  
 
#1 seashley
08:55 May 04, 2008
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);
   }
 
     

Return to Bugs & Features | Post Text | Post File ]

 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.