mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-02 01:12:58 +02:00
Fix for bug #5997
This commit is contained in:
parent
7712d3f3a4
commit
77deb2ddd3
1 changed files with 3 additions and 1 deletions
|
|
@ -325,7 +325,7 @@ def widget_factory(type, col):
|
|||
# Avoid problems with multi-line widgets
|
||||
turnover_point = count_non_comment + 1000
|
||||
ans = []
|
||||
column = row = 0
|
||||
column = row = comments_row = 0
|
||||
for col in cols:
|
||||
dt = x[col]['datatype']
|
||||
if dt == 'comments':
|
||||
|
|
@ -337,11 +337,13 @@ def widget_factory(type, col):
|
|||
layout.addWidget(w.widgets[c], row, column)
|
||||
layout.addWidget(w.widgets[c+1], row, column+1)
|
||||
row += 1
|
||||
comments_row = max(comments_row, row)
|
||||
if row >= turnover_point:
|
||||
column += 2
|
||||
turnover_point = count_non_comment + 1000
|
||||
row = 0
|
||||
if not bulk: # Add the comments fields
|
||||
row = comments_row
|
||||
column = 0
|
||||
for col in cols:
|
||||
dt = x[col]['datatype']
|
||||
|
|
|
|||
Loading…
Reference in a new issue