Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: text affecting other text  (Read 3366 times)

0 Members and 1 Guest are viewing this topic.

asdatapel

  • Jr. Member
  • **
  • Posts: 76
    • View Profile
text affecting other text
« on: March 31, 2013, 05:48:26 am »
wassup,
im running into problems using two Text objects. i think it may be a bug but im not sure. anyway the problem is this: im using getLocalBounds of both texts to center them. However, if i update one text's string and not the other's, it causes the unchanged text's bounds to also change, causing it to go ff center. I dont know why this is. It only happens when i update one text. if i comment out that update, the other stops moving around. If you guys have any ideas thatd be great. thanks

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: text affecting other text
« Reply #1 on: March 31, 2013, 09:40:06 am »
Please show a complete and minimal code that reproduces the problem.
Laurent Gomila - SFML developer