Procházet zdrojové kódy

text-freetype2: Fix empty text not updating source

Fixes a bug where if you update the source with empty text, it would
still continue to use the previous text value.
jp9000 před 4 roky
rodič
revize
6e05e8b325
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      plugins/text-freetype2/text-freetype2.c

+ 1 - 1
plugins/text-freetype2/text-freetype2.c

@@ -488,7 +488,7 @@ skip_font_load:
 		}
 	} else {
 		const char *tmp = obs_data_get_string(settings, "text");
-		if (!tmp || !*tmp)
+		if (!tmp)
 			goto error;
 
 		if (srcdata->text != NULL) {