forked from mia/Aegisub
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:
parent
fcd9974772
commit
857938f18b
2 changed files with 10 additions and 2 deletions
|
@ -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)
|
- 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)
|
- 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)
|
- 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 ===========================
|
= 1.10 beta - 2006.08.07 ===========================
|
||||||
|
|
|
@ -1049,11 +1049,18 @@ void SubtitlesGrid::JoinLines(int n1,int n2,bool concat) {
|
||||||
int start,end;
|
int start,end;
|
||||||
bool gotfirst = false;
|
bool gotfirst = false;
|
||||||
for (int i=n1;i<=n2;i++) {
|
for (int i=n1;i<=n2;i++) {
|
||||||
|
// Get start and end time of current line
|
||||||
cur = GetDialogue(i);
|
cur = GetDialogue(i);
|
||||||
start = cur->Start.GetMS();
|
start = cur->Start.GetMS();
|
||||||
end = cur->End.GetMS();
|
end = cur->End.GetMS();
|
||||||
|
|
||||||
|
// Don't take the timing of zero lines
|
||||||
|
if (start != 0 || end != 0) {
|
||||||
if (start < min_ms) min_ms = start;
|
if (start < min_ms) min_ms = start;
|
||||||
if (end > max_ms) max_ms = end;
|
if (end > max_ms) max_ms = end;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Set text
|
||||||
if (concat || !gotfirst) {
|
if (concat || !gotfirst) {
|
||||||
if (gotfirst) finalText += _T("\\N");
|
if (gotfirst) finalText += _T("\\N");
|
||||||
gotfirst = true;
|
gotfirst = true;
|
||||||
|
|
Loading…
Reference in a new issue