backporting fix for calc in inlineedit