From 03ba2a680e17aa4bf5e9a2dd5cb392a296533954 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20L?= Date: Tue, 23 Apr 2019 11:32:04 +0200 Subject: [PATCH] SetSceneItemProperties: fix string comparison for bounds type parameter Fixes #309 --- src/WSRequestHandler_SceneItems.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/WSRequestHandler_SceneItems.cpp b/src/WSRequestHandler_SceneItems.cpp index 25e1af7a..baa0f97a 100644 --- a/src/WSRequestHandler_SceneItems.cpp +++ b/src/WSRequestHandler_SceneItems.cpp @@ -207,7 +207,7 @@ HandlerResponse WSRequestHandler::HandleSetSceneItemProperties(WSRequestHandler* OBSDataAutoRelease boundsError = obs_data_create(); OBSDataAutoRelease reqBounds = obs_data_get_obj(req->data, "bounds"); if (obs_data_has_user_value(reqBounds, "type")) { - const char* newBoundsType = obs_data_get_string(reqBounds, "type"); + QString newBoundsType = obs_data_get_string(reqBounds, "type"); if (newBoundsType == "OBS_BOUNDS_NONE") { obs_sceneitem_set_bounds_type(sceneItem, OBS_BOUNDS_NONE); }