11/* Reverse Engineer's Hex Editor
2- * Copyright (C) 2020-2024 Daniel Collins <solemnwarning@solemnwarning.net>
2+ * Copyright (C) 2020-2025 Daniel Collins <solemnwarning@solemnwarning.net>
33 *
44 * This program is free software; you can redistribute it and/or modify it
55 * under the terms of the GNU General Public License version 2 as published by
@@ -194,10 +194,10 @@ void REHex::FillRangeDialog::OnOK(wxCommandEvent &event)
194194 try {
195195 if (insert_mode_selected)
196196 {
197- selection_off = range_from->GetValue <off_t >(0 , doc_length);
197+ selection_off = range_from->GetNumValue <off_t >(0 , doc_length);
198198 }
199199 else {
200- selection_off = range_from->GetValue <off_t >(0 , (doc_length - 1 ));
200+ selection_off = range_from->GetNumValue <off_t >(0 , (doc_length - 1 ));
201201 }
202202 }
203203 catch (const NumericTextCtrl::InputError &e)
@@ -214,11 +214,11 @@ void REHex::FillRangeDialog::OnOK(wxCommandEvent &event)
214214 try {
215215 if (insert_mode_selected)
216216 {
217- off_t selection_to = range_to->GetValue <off_t >(selection_off);
217+ off_t selection_to = range_to->GetNumValue <off_t >(selection_off);
218218 selection_length = (selection_to - selection_off) + 1 ;
219219 }
220220 else {
221- off_t selection_to = range_to->GetValue <off_t >(selection_off, (doc_length - 1 ));
221+ off_t selection_to = range_to->GetNumValue <off_t >(selection_off, (doc_length - 1 ));
222222 selection_length = (selection_to - selection_off) + 1 ;
223223 }
224224 }
@@ -235,10 +235,10 @@ void REHex::FillRangeDialog::OnOK(wxCommandEvent &event)
235235 try {
236236 if (insert_mode_selected)
237237 {
238- selection_length = range_len->GetValue <off_t >(0 );
238+ selection_length = range_len->GetNumValue <off_t >(0 );
239239 }
240240 else {
241- selection_length = range_len->GetValue <off_t >(0 , (doc_length - selection_off));
241+ selection_length = range_len->GetNumValue <off_t >(0 , (doc_length - selection_off));
242242 }
243243 }
244244 catch (const NumericTextCtrl::InputError &e)
0 commit comments