ORLANDO, Fla. (AP) — Officials from Coral Gables and Orlando have averted a potentially ugly fight over the right to the nickname "The City Beautiful."

Both had used the slogan for decades, but Coral Gables applied last year for a federal trademark seeking exclusive rights. Orlando filed an objection blocking the application, and the two sides reached a deal last week.

Orlando can use the nickname in promotional materials in 22 nearby counties, and Coral Gables, near Miami, can use it in 10 south Florida counties.

Coral Gables Mayor Don Slesnick said the city wasn't trying to swipe Orlando's right to the slogan.

"It was never any kind of nefarious scheme," he said. "We were just trying to protect our identity."