The present invention, an electronic control mechanism and a temperature-measuring device to have an optical projection system for projecting focus the treatment laser beam 14 to measure the temperature at which the projection system is occupied is connected to the temperature measuring device with (22) the electronic control mechanism is configured to be in, so as to control the focus setting according to the measured temperature, an apparatus 10 for ophthalmic laser surgery. The invention further relates to a method related thereto.本発明は、治療レーザ・ビーム14を焦点に投影するための光学投影システムを有し、投影システムが占める温度を測定するための温度測定装置を有し、温度測定装置に接続された電子制御機構であって、測定温度に応じて焦点の設定を制御するように構成されている電子制御機構(22)を有する、眼科レーザ手術のための装置10に関する。本発明は、それに関する方法にもさらに関する。