mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
f017da50aa
commit
db9056d5a1
@ -345,7 +345,7 @@ class CoverDelegate(QStyledItemDelegate):
|
||||
|
||||
def calculate_spacing(self):
|
||||
spc = self.original_spacing = gprefs['cover_grid_spacing']
|
||||
if spc < 0.1:
|
||||
if spc < 0.01:
|
||||
self.spacing = max(10, min(50, int(0.1 * self.original_width)))
|
||||
else:
|
||||
self.spacing = self.parent().logicalDpiX() * CM_TO_INCH * spc
|
||||
|
@ -289,7 +289,10 @@
|
||||
<string> cm</string>
|
||||
</property>
|
||||
<property name="decimals">
|
||||
<number>1</number>
|
||||
<number>2</number>
|
||||
</property>
|
||||
<property name="singleStep">
|
||||
<double>0.100000000000000</double>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
Loading…
x
Reference in New Issue
Block a user