octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #56690] gui: variable editor should support di


From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #56690] gui: variable editor should support display of lazy_index
Date: Tue, 31 Dec 2024 08:58:04 -0500 (EST)

Follow-up Comment #6, bug #56690 (group octave):

Try this change:


diff --git a/libinterp/octave-value/ov-lazy-idx.h
b/libinterp/octave-value/ov-lazy-idx.h
--- a/libinterp/octave-value/ov-lazy-idx.h
+++ b/libinterp/octave-value/ov-lazy-idx.h
@@ -143,6 +143,10 @@ public:
   void print (std::ostream& os, bool pr_as_read_syntax = false)
   { make_value ().print (os, pr_as_read_syntax); }
 
+  std::string edit_display (const float_display_format& fmt,
+                            octave_idx_type i, octave_idx_type j) const
+  { return make_value ().edit_display (fmt, i, j); }
+
   void print_info (std::ostream& os, const std::string& prefix) const
   { make_value ().print_info (os, prefix); }
 


The patch posted previously might also work but the change above seems simpler
and is also consistent with the way the other functions in the lazy index
class work by just converting and forwarding.


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?56690>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]