Fix detection of the layer id.

This commit is contained in:
David Molineus
2018-12-07 14:26:58 +01:00
parent 20efff72d9
commit bdca0adb56
2 changed files with 0 additions and 20 deletions

View File

@@ -212,21 +212,11 @@ class MarkerDcaListener
{
// Check the current action
switch (Input::get('act')) {
case 'paste':
return null;
case '':
case 'create':
case 'select':
return (int) Input::get('id');
case 'editAll':
case 'deleteAll':
case 'overrideAll':
case 'cutAll':
case 'copyAll':
return (int) Input::get('pid');
default:
return (int) CURRENT_ID;
}

View File

@@ -166,21 +166,11 @@ class VectorDcaListener extends AbstractListener
{
// Check the current action
switch (Input::get('act')) {
case 'paste':
return null;
case '':
case 'create':
case 'select':
return (int) Input::get('id');
case 'editAll':
case 'deleteAll':
case 'overrideAll':
case 'cutAll':
case 'copyAll':
return (int) Input::get('pid');
default:
return (int) CURRENT_ID;
}