Skip to content

Commit

Permalink
Fixed issue #10
Browse files Browse the repository at this point in the history
  • Loading branch information
ldebek committed Oct 30, 2018
1 parent 6b57889 commit 5f6c539
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 4 additions & 3 deletions QGIS Plugin/metadata.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ name=Project Selector
qgisMinimumVersion=2.0
qgisMaximumVersion=2.99
description=Tool for selecting pre-defined QGIS projects.
version=1.2.3
version=1.2.4
author=Dartmoor National Park Authority
[email protected]
about=Tools for simplifying and automating common tasks for national parks and other protected areas. Catchy name courtesy of Dartmoor National Park, UK.
Expand All @@ -23,8 +23,9 @@ about=Tools for simplifying and automating common tasks for national parks and o
# Optional items:

# Uncomment the following line and add your changelog entries:

changelog=1.2.3 - Bug fixes:
changelog=1.2.4 - Bug fixes:
- Fixed issue #10
<p>1.2.3 - Bug fixes:
- Added noticing for functionality unavailable in QGIS versions lower than 2.18
- Fixed issue #9
<p>1.2.2 - Bug fixes:
Expand Down
4 changes: 3 additions & 1 deletion QGIS Plugin/templateselectordialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,9 @@ def getPaperSizes(self):
if not os.path.isfile(os.path.join(templateFolder, entry)) or not entry.lower().endswith('.qpt'):
continue
paperSize = entry[:2]
if paperSize in self.supportedPaperSizes and not paperSize in self.paperSizesPresent:
if paperSize in self.supportedPaperSizes and paperSize not in self.paperSizesPresent:
self.paperSizesPresent.append(paperSize)
self.paperSizesPresent.sort(reverse=True)

def onPaperSizeChanged(self, newIdx=None):
# Determine what orientations are available
Expand Down Expand Up @@ -417,6 +418,7 @@ def openTemplate(self):
except ValueError:
cleanedScaleString = scaleCombo.currentText().split(' (')[0]
cleanedScaleString = cleanedScaleString.replace(')', '')
cleanedScaleString = cleanedScaleString.replace(u'\u00A0', '')
scaleDenom = float(cleanedScaleString.replace(',', '').replace(' ', ''))
# Set the scale
cme = compMap.extent()
Expand Down

0 comments on commit 5f6c539

Please sign in to comment.