File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -452,9 +452,9 @@ def redo(self):
452
452
blk .translation = trans_dict ['replace' ]
453
453
blk .rich_text = trans_dict ['replace_html' ]
454
454
455
- for src_dict in self .src_list :
456
- blk : TextBlock = self .proj .pages [trans_dict ['pagename' ]][trans_dict ['idx' ]]
457
- blk .text = trans_dict ['replace' ]
455
+ for src_dict in self .bsrc_list :
456
+ blk : TextBlock = self .proj .pages [src_dict ['pagename' ]][src_dict ['idx' ]]
457
+ blk .text = src_dict ['replace' ]
458
458
459
459
def undo (self ):
460
460
for trans_dict in self .trans_list :
@@ -473,8 +473,8 @@ def undo(self):
473
473
blk .rich_text = trans_dict ['ori_html' ]
474
474
475
475
for src_dict in self .src_list :
476
- blk : TextBlock = self .proj .pages [trans_dict ['pagename' ]][trans_dict ['idx' ]]
477
- blk .text = trans_dict ['ori' ]
476
+ blk : TextBlock = self .proj .pages [src_dict ['pagename' ]][src_dict ['idx' ]]
477
+ blk .text = src_dict ['ori' ]
478
478
479
479
480
480
class MultiPasteCommand (QUndoCommand ):
You can’t perform that action at this time.
0 commit comments