From 02f14bfe9578ab2f2e53c55edf4e82c3c7134d7f Mon Sep 17 00:00:00 2001
From: Krisjanis Rijnieks <krisjanis.rijnieks@gmail.com>
Date: Mon, 24 Oct 2016 18:01:51 +0200
Subject: [PATCH] Refine ofxPiMapper::selectSurface public method

---
 src/ofxPiMapper.cpp | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/ofxPiMapper.cpp b/src/ofxPiMapper.cpp
index 0fb66bd..9ee6dad 100644
--- a/src/ofxPiMapper.cpp
+++ b/src/ofxPiMapper.cpp
@@ -41,9 +41,7 @@ void ofxPiMapper::eraseActivePreset(){
 }
 
 void ofxPiMapper::selectSurface(int i){
-	if(_application.getState() == ofx::piMapper::PresentationMode::instance()){
-		_application.getSurfaceManager()->selectSurface(i);
-	}
+	_application.getState()->selectSurface(&_application, i);
 }
 
 void ofxPiMapper::selectNextSurface(){