From: Good Guy Date: Sat, 9 Sep 2017 20:02:16 +0000 (-0600) Subject: fix spelling, more clipboard fixes X-Git-Url: https://cinelerra-gg.org/git/?a=commitdiff_plain;h=265feb10ecd640f8c90351082f48442863722a9d;p=goodguy%2Fhistory.git fix spelling, more clipboard fixes --- diff --git a/cinelerra-5.1/cinelerra/amodule.C b/cinelerra-5.1/cinelerra/amodule.C index 7fc0140b..6ade03dd 100644 --- a/cinelerra-5.1/cinelerra/amodule.C +++ b/cinelerra-5.1/cinelerra/amodule.C @@ -282,7 +282,7 @@ speed_fragment_len); FloatAuto *previous = 0; FloatAuto *next = 0; FloatAutos *speed_autos = (FloatAutos*)track->automation->autos[AUTOMATION_SPEED]; - speed_position += speed_autos->automation_intergal(edit_startproject, + speed_position += speed_autos->automation_integral(edit_startproject, start_project-edit_startproject, PLAY_FORWARD); speed_position1 = speed_position; diff --git a/cinelerra-5.1/cinelerra/floatautos.C b/cinelerra-5.1/cinelerra/floatautos.C index 458016cf..fde4a155 100644 --- a/cinelerra-5.1/cinelerra/floatautos.C +++ b/cinelerra-5.1/cinelerra/floatautos.C @@ -425,7 +425,7 @@ void FloatAutos::dump() } } -double FloatAutos::automation_intergal(int64_t start, int64_t length, int direction) +double FloatAutos::automation_integral(int64_t start, int64_t length, int direction) { if( direction == PLAY_REVERSE ) start -= length; diff --git a/cinelerra-5.1/cinelerra/floatautos.h b/cinelerra-5.1/cinelerra/floatautos.h index 8c8e7359..d83f1509 100644 --- a/cinelerra-5.1/cinelerra/floatautos.h +++ b/cinelerra-5.1/cinelerra/floatautos.h @@ -63,7 +63,7 @@ public: int64_t unit_end); void set_automation_mode(int64_t start, int64_t end, int mode); - double automation_intergal(int64_t start, int64_t length, int direction); + double automation_integral(int64_t start, int64_t length, int direction); void dump(); Auto* new_auto(); diff --git a/cinelerra-5.1/cinelerra/vmodule.C b/cinelerra-5.1/cinelerra/vmodule.C index d345cbc4..02e047e6 100644 --- a/cinelerra-5.1/cinelerra/vmodule.C +++ b/cinelerra-5.1/cinelerra/vmodule.C @@ -267,7 +267,7 @@ int VModule::import_frame(VFrame *output, VEdit *current_edit, // integrate position from start of edit. double speed_position = edit_startsource; FloatAutos *speed_autos = (FloatAutos*)track->automation->autos[AUTOMATION_SPEED]; - speed_position += speed_autos->automation_intergal(edit_startproject, + speed_position += speed_autos->automation_integral(edit_startproject, direction_position-edit_startproject, PLAY_FORWARD); //printf("VModule::import_frame %d %lld %lld\n", __LINE__, position, (int64_t)speed_position); position = (int64_t)speed_position; diff --git a/cinelerra-5.1/guicast/bcclipboard.C b/cinelerra-5.1/guicast/bcclipboard.C index bae148fc..aa3b2f08 100644 --- a/cinelerra-5.1/guicast/bcclipboard.C +++ b/cinelerra-5.1/guicast/bcclipboard.C @@ -255,13 +255,12 @@ int BC_Clipboard::to_clipboard(BC_WindowBase *owner, const char *data, long len, if( clipboard_num < CLIP_BUFFER0 ) { char *bfr = data_buffer[clipboard_num]; - if( data_length[clipboard_num] != len+1 ) { - delete [] bfr; bfr = new char[len+1]; + if( data_length[clipboard_num] != len ) { + delete [] bfr; bfr = new char[len]; data_buffer[clipboard_num] = bfr; - data_length[clipboard_num] = len+1; + data_length[clipboard_num] = len; } memcpy(bfr, data, len); - bfr[len] = 0; Atom selection = clipboard_num == CLIP_PRIMARY ? xa_primary : clipboard; // this is not supposed to be necessary according to the man page Window cur = XGetSelectionOwner(out_display, selection);