PixmapCache: fixed a format issue generating the pixmap key when a size was given.

Tue, 19 Feb 2019 19:02:21 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Tue, 19 Feb 2019 19:02:21 +0100
changeset 6787
3de088ae0782
parent 6786
701b511ba8f5
child 6788
eb1f1de204da

PixmapCache: fixed a format issue generating the pixmap key when a size was given.

UI/PixmapCache.py file | annotate | diff | comparison | revisions
diff -r 701b511ba8f5 -r 3de088ae0782 UI/PixmapCache.py
--- a/UI/PixmapCache.py	Tue Feb 19 18:16:45 2019 +0100
+++ b/UI/PixmapCache.py	Tue Feb 19 19:02:21 2019 +0100
@@ -42,7 +42,8 @@
         if key:
             basename, ext = os.path.splitext(key)
             if size and not size.isEmpty():
-                key = "{0}_{1}_{2}".format(size.width(), size.height())
+                key = "{0}_{1}_{2}".format(
+                    basename, size.width(), size.height())
             else:
                 key = basename
             

eric ide

mercurial