diff --git a/admin/reports_editor.php b/admin/reports_editor.php
index a499975..f9e0791 100644
--- a/admin/reports_editor.php
+++ b/admin/reports_editor.php
@@ -390,11 +390,11 @@ function createData(x,y,w,h,l,face,align,valign,value) {
echo "";
echo "\n";
- echo "
Label Data Locations
";
-
$l_w=$report_stock[$report['option']['stock']]['label_width'];
$l_h=$report_stock[$report['option']['stock']]['label_height'];
- if($l_w && $l_h) {
+ if($l_w && $l_h && $report['option']['type']=="label") {
+ echo "Label Data Locations
";
+
$doCanvasSample=true;
$ratio=$l_h/$l_w;
$canvaswidth=600;