Index: obj_text.h =================================================================== --- obj_text.h (revision 19580) +++ obj_text.h (revision 19581) @@ -76,6 +76,10 @@ directly under data - useful e.g. on parent attr change */ void pcb_text_dyn_bbox_update(pcb_data_t *data); +/* Return the old direction value (n*90 deg rotation) for text rotation value. + Returns false if has a rounding error greater than 0.5 deg */ +pcb_bool pcb_text_old_direction(int *dir_out, double rot); + /* hash and eq */ int pcb_text_eq(const pcb_host_trans_t *tr1, const pcb_text_t *t1, const pcb_host_trans_t *tr2, const pcb_text_t *t2); unsigned int pcb_text_hash(const pcb_host_trans_t *tr, const pcb_text_t *t);