https://bugs.kde.org/show_bug.cgi?id=507547

            Bug ID: 507547
           Summary: Failed assertion when inserting a new subtitle line
                    above the first.
    Classification: Applications
           Product: subtitlecomposer
      Version First unspecified
       Reported In:
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

STEPS TO REPRODUCE
- build subtitlecomposer with debug and assertions enabled
- open a subtitle file
- select the first subtitle line
- select command "insert before" from the context menu

OBSERVED RESULT
- failed assertion: 'm_ref' is null, but it shouldn't

According to C++ specs, in release builds, program behaviour after the failed
assertion is undefined, though in practice it is not.

SOFTWARE/OS VERSIONS
- shouldn't matter

ADDITIONAL INFORMATION

I already tracked it down to the method "SubtitleLine::index()" in
"src/core/subtitleline.cpp". Apparently, there is some convoluted template
magic with Qt going on, which may not call the constructor of helper objects as
one would expect. It also doesn't seem to be first time this issue has popped
up, because there is already some code there to work around this issue.

I already patched it for myself. If you are interested, what is the proper way
to make this patch available? I heard of pull requests, but I have no
experience how those works.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to