mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-02 05:23:08 +02:00
Metadata comments editor: Fix setting block alignment destroying other block level properties. Fixes #1924187 [Edit metadata: Text alignment on lists in WYSIWYG editor](https://bugs.launchpad.net/calibre/+bug/1924187)
This commit is contained in:
parent
718d33bc2f
commit
3f2bc45368
1 changed files with 2 additions and 1 deletions
|
|
@ -457,7 +457,8 @@ def do_unordered_list(self):
|
|||
|
||||
def do_alignment(self, which):
|
||||
with self.editing_cursor() as c:
|
||||
fmt = QTextBlockFormat()
|
||||
c = self.textCursor()
|
||||
fmt = c.blockFormat()
|
||||
fmt.setAlignment(which)
|
||||
c.setBlockFormat(fmt)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue