code fixes

This commit is contained in:
Dennis Eichhorn 2024-03-15 20:24:38 +00:00
parent 66a1abbb90
commit 9baa4a4990
2 changed files with 5 additions and 4 deletions

View File

@ -166,8 +166,7 @@ final class BackendController extends Controller
$view->setTemplate('/Modules/Labeling/Theme/Backend/layout-view');
$view->data['nav'] = $this->app->moduleManager->get('Navigation')->createNavigationMid(1005701001, $request, $response);
/** @var \Modules\Labeling\Models\LabelLayout[] $layouts */
$layout = LabelLayoutMapper::get()
$view->data['layout'] = LabelLayoutMapper::get()
->with('l11n')
->with('template')
->with('template/sources')
@ -175,8 +174,6 @@ final class BackendController extends Controller
->where('id', (int) $request->getData('id'))
->execute();
$view->data['layout'] = $layout;
return $view;
}
}

View File

@ -222,6 +222,10 @@ class Label
// should rotate
if ($element->rotate !== 0.0) {
$rotated = \imagerotate($in, $element->rotate, $transparency);
if ($rotated === false) {
return null;
}
\imagealphablending($rotated, false);
\imagesavealpha($rotated, true);