All new accounts created on Gitlab now require administrator approval. If you invite any collaborators, please let Flux staff know so they can approve the accounts.

Commit ff97d2b3 authored by Leigh B. Stoller's avatar Leigh B. Stoller

Fix divide by zero error.

parent 554c7800
......@@ -1841,7 +1841,7 @@ function SHOWNODE($node_id, $flags = 0) {
$row = mysql_fetch_array($query_result);
if (isset($row["pixels_per_meter"]) &&
($pixels_per_meter = $row["pixels_per_meter"])) {
($pixels_per_meter = $row["pixels_per_meter"]) != 0.0) {
$meters_x = sprintf("%.3f", $loc_x / $pixels_per_meter);
$meters_y = sprintf("%.3f", $loc_y / $pixels_per_meter);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment