You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
insert_column with existing styled cell doesn't set cell @worksheet, causing failure in LegacyCell#validate_worksheet #441
/Users/david/.rvm/gems/ruby-3.1.2/gems/rubyXL-3.4.25/lib/rubyXL/cell.rb:24:in `validate_worksheet': Cell #<RubyXL::Cell:0x0000000106c01c30> is not in worksheet (RuntimeError)
from /Users/david/.rvm/gems/ruby-3.1.2/gems/rubyXL-3.4.25/lib/rubyXL/convenience_methods/cell.rb:4:in `change_contents'
from /tmp/rubyxl.rb:23:in `<main>'
If you have multiple rows, LegacyCell#validate_worksheet will still fail even with the above, due to row not getting set, either. Updated workaround:
moduleRubyXLclassCelldefinitialize(params=nil)superifparams.respond_to?(:[])@worksheet ||= params[:worksheet]self.row ||= params[:row]# note: not an instance variableendendendend
Activity
dmolesUC commentedon Apr 26, 2023
Workaround:
Updated to add:
If you have multiple rows,
LegacyCell#validate_worksheetwill still fail even with the above, due torownot getting set, either. Updated workaround: