Joining of two lines will no longer take the timings of any line that starts and ends at 0 into consideration. Issue #206

Originally committed to SVN as r1445.
This commit is contained in:
Rodrigo Braz Monteiro 2007-07-27 07:08:22 +00:00
parent fcd9974772
commit 857938f18b
2 changed files with 10 additions and 2 deletions

View File

@ -155,6 +155,7 @@ Please visit http://aegisub.net to download latest version
- Treat comments inside {}'s as plain text, not as overrides; Also, don't assume override blocks start with a backslash, even if they probably should (Dansolo)
- Removed FexTracker due to licensing problems; there are plans to implement a new motion tracker in its place (jfs)
- Changed translation assistent to use Scintilla text controls to avoid several issues, including Right-To-Left text entry. (AMZ)
- Joining of two lines will no longer take the timings of any line that starts and ends at 0 into consideration. (AMZ)
= 1.10 beta - 2006.08.07 ===========================

View File

@ -1049,11 +1049,18 @@ void SubtitlesGrid::JoinLines(int n1,int n2,bool concat) {
int start,end;
bool gotfirst = false;
for (int i=n1;i<=n2;i++) {
// Get start and end time of current line
cur = GetDialogue(i);
start = cur->Start.GetMS();
end = cur->End.GetMS();
if (start < min_ms) min_ms = start;
if (end > max_ms) max_ms = end;
// Don't take the timing of zero lines
if (start != 0 || end != 0) {
if (start < min_ms) min_ms = start;
if (end > max_ms) max_ms = end;
}
// Set text
if (concat || !gotfirst) {
if (gotfirst) finalText += _T("\\N");
gotfirst = true;