# KOMA script and amsthm: Space lost before and after theorems

I am having a problem similar to this and this, but without using parskip, and only after a recent package update. The MWE

\documentclass{scrartcl}

\usepackage{amsmath,amsthm}

\theoremstyle{plain}
\newtheorem{thm}{Theorem}

\begin{document}

Some text before the theorem.

\begin{thm}
Fun with theorems.
\end{thm}

Some text afterwards.

\end{document}

produces the following, certainly wrong spacing:

The space between the theorem and the preceding and succeeding text has gone. This only happens with scrartcl, not with article.

This is a known bug in the latest (released) version 3.14 of KOMA script, see http://www.komascript.de/release3.14 (in German, search for "scrsize10pt.clo"). EDIT: The bug is fixed in the (released and in TeXLive as of 20/01/2015) version 3.15.

\csname @listi\endcsname after loading a scr* document class and after every use of the option fontsize.

Alternatively, you can edit the files scrsize10pt.clo, scrsize11pt.clo and scrsize12pt.clo to revert the change in this revision; the relevant bit is at the very end of the file, which should be changed to

%%% From File: $Id: scrkernel-paragraphs.dtx 1767 2014-06-26 09:20:18Z kohm$
\@ifundefined{@list@extra}{}{%
\let\@listI=\@listi