prevent popup deactivation while button_down
[goodguy/history.git] / cinelerra-5.0 / cinelerra / keyframe.C
index b115570058ef738dc38739e0982e741188bb335a..68eed16b038e751388b74d7245444d79d5d93a1f 100644 (file)
@@ -231,31 +231,12 @@ void KeyFrame::update_parameter(BC_Hash *params,
                                }
                        }
 
-
-
 // Append parameters to output
                        output.append_tag();
-
 // Write anonymous text & duplicate the rest
-                       if(text)
-                       {
-                               output.append_text(text);
-                       }
-                       else
-                       {
-                               output.append_text(this_text);
-                       }
-
+                       output.append_text(text ? text : this_text);
 // Append remaining previous data
-                       if(extra)
-                       {
-                               output.append_text(extra);
-                       }
-                       else
-                       {
-                               output.append_text(this_extra);
-                       }
-
+                       output.append_data(extra ? extra : this_extra);
 // Move output to input
                        output.terminate_string();
                        strcpy(this->data, output.string());