diff --git a/indra/newview/llpresetsmanager.cpp b/indra/newview/llpresetsmanager.cpp
index e0fa085658e43d4eb9ff2db932ba14066071319c..52964a125f5ef383c2e2b35f7f1aeab42c26320a 100644
--- a/indra/newview/llpresetsmanager.cpp
+++ b/indra/newview/llpresetsmanager.cpp
@@ -214,7 +214,7 @@ void LLPresetsManager::settingChanged()
 
 void LLPresetsManager::getControlNames(std::vector<std::string>& names)
 {
-	names = boost::assign::list_of
+	const std::vector<std::string> camera_controls = boost::assign::list_of
 		// From panel_preferences_move.xml
 		("CameraAngle")
 		("CameraOffsetScale")
@@ -225,7 +225,9 @@ void LLPresetsManager::getControlNames(std::vector<std::string>& names)
 		("CameraOffsetRearView")
 		("FocusOffsetRearView")
 		("CameraOffsetScale")
-		("TrackFocusObject");
+		("TrackFocusObject")
+        ;
+    names = camera_controls;
 }
 
 bool LLPresetsManager::savePreset(const std::string& subdirectory, std::string name, bool createDefault)