From bff44bebcecb80233b235c94987f08c85dfb7b57 Mon Sep 17 00:00:00 2001 From: Joe R Date: Sat, 10 Jul 2021 13:33:20 -0400 Subject: [PATCH] Fixed crash when selecting cardset without PIL. --- pysollib/tile/selectcardset.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pysollib/tile/selectcardset.py b/pysollib/tile/selectcardset.py index 4b905e5b..b865c768 100644 --- a/pysollib/tile/selectcardset.py +++ b/pysollib/tile/selectcardset.py @@ -440,7 +440,7 @@ class SelectCardsetDialogWithPreview(MfxDialog): names, columns = cs.getPreviewCardNames() # if cardset has changed, set default values - if key != self.preview_key: + if key != self.preview_key and USE_PIL: self.x_offset.config(value=cs.CARD_XOFFSET) self.x_offset.set(cs.CARD_XOFFSET)