To be fair, that's not how the situation played out.
You might want to read the answers to:
I answered a similar question some time ago.
The short answer is that this isn't why Galileo was sent to the Inquisition. Most people knew the world was round, the Church had no issue with that. He was sent to the Inquisition for claiming that the Bible said that the Sun went round the Earth, which was felt to be a)unsupported by the proof available a the time, and b)none of a non-priest's business. Copernicus had claimed exactly the same thing with no controversy, but had taken great pains to stay on the Church's good side, and hadn't used the Bible as proof. Also, Galileo had insulted a lot of other scientists, priests, and even his friend (until he insulted him) the Pope, and as this was shortly after the Reformation the Church was very sensitive to non-Priests claiming authority in interpreting the Bible. If it hadn't been for these factors, then, like Copernicus, it's unlikely Galileo would have been more than a scientist with an unsupported theory (that later evidence, not available at the time, turned out to show was correct).
For a longer answer, see here. https://www.reddit.com/r/AskHistorians/comments/4gd676/i_recently_learned_that_most_people_during_the/