Package: qgis / 2.4.0-1

0001-processing-fixed-10445.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
From 6c73e001e507c766df062164f9e989f06aa8561c Mon Sep 17 00:00:00 2001
From: Victor Olaya <volayaf@gmail.com>
Date: Sat, 28 Jun 2014 16:59:53 +0200
Subject: [processing] fixed #10445
Origin: https://github.com/qgis/QGIS/commit/6c73e001e507c766df062164f9e989f06aa8561c
Bug: http://hub.qgis.org/issues/10445


--- a/python/plugins/processing/gui/BatchInputSelectionPanel.py
+++ b/python/plugins/processing/gui/BatchInputSelectionPanel.py
@@ -95,7 +95,7 @@ class BatchInputSelectionPanel(QtGui.QWi
                 if isinstance(self.param, ParameterMultipleInput):
                     self.text.setText(';'.join(layers[idx].name() for idx in selected))
                 else:
-                    rowdif = len(layers) - (self.table.rowCount() - self.row)
+                    rowdif = len(selected) - (self.table.rowCount() - self.row)
                     for i in range(rowdif):
                         self.batchDialog.addRow()
                     for i, layeridx in enumerate(selected):